[M3devel] Posix < 0 vs. # 0 vs. = -1?

Jay K jay.krell at cornell.edu
Sun Apr 18 15:57:23 CEST 2010


Posix often says:

 function foo() returns 0 for success, -1 for error

 

 m3core/libm3/etc, often say if foo() < 0 or if foo() # 0 "instead".
 Generally ok to tighten these up to "= -1", perhaps upon checking manpages,
  or a known rat's nest of inconsistencies?


 - Jay

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://m3lists.elegosoft.com/pipermail/m3devel/attachments/20100418/969c0312/attachment-0001.html>


More information about the M3devel mailing list