Thanks. You're right, tho - not quite what I was looking for
I've seen that when you boot into single user mode (or at least I seem to remember...) that there's a message showing the battery status in percent. Hence I'm assuming there'll be a C API to that somewhere. I'll have a dig around when I have time and see if I can knock up a little CLI util to do it.