I'm supposed to write a program in C that uses the scanner (communicates and eventually scans an entire image and saves it to a file). I have been programming in C a bit, but not really too much, so I was wondering if anyone can help me with this. Are there some commands that access the external devices directly and send/receive data to/from them? Could you maybe point me to a link/book where I could find out more?

I've heard of SANE, a linux scanner backend that is something like this, and I've checked it out but couldn't actually find some hard code to try to figure out, so maybe someone knows how to get a hold on some of the examples from SANE?

Thx alot.