Here you go
I'm currently working on the same thing.
http://todbot.com/blog/2006/12/06/arduino-serial-c-code-to-talk-to-arduino/
http://dce.felk.cvut.cz/pos/cv5/doc/serial.html
By the way I'm getting a bit distorted readouts with this code, would you mail me if you figure out how to fix that?