I'm pretty new to SANE and I'm trying to figure out how to use certain
functions, such as the sane_open function.
Could I, for example, use it in and "if" statement like this:
/////////////////////
#include <sane/sane.h>
//Start it up
SANE_Status sane_init() {
if (SANE_Status sane_open("foo0", "fubu") == sane_status_io_error ) {
printf("Sorry, something went wrong\n");
return 0;
}
}
/////////////////////
Or does it require something special?
--
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm