DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR Active]

Link: http://www.fltk.org/str.php?L2873
Version: 1.3-current


OK: assigning this to myself and will solve in docs.

A small bit of example code should remove any ambiguity:

    if ( img->w() <= 0 ||
         img->h() <= 0 ||
         img->d() <= 0 ) { ..an error occurred.. }

I think I'll avoid the specifics of error handling (eg. using
strerror()/perror() to access file system errors) because the
failure might be caused by a non-operating system issue (e.g.
bad values in the image header) where any value of errno
would be misleading.


Link: http://www.fltk.org/str.php?L2873
Version: 1.3-current

_______________________________________________
fltk-bugs mailing list
fltk-bugs@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to