[sane-devel] On functions

Jason Anderson sirius-c@iname.com
Mon, 08 Dec 2003 10:17:50 -0500

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