home *** CD-ROM | disk | FTP | other *** search
/ Education Sampler 1992 [NeXTSTEP] / Education_1992_Sampler.iso / NeXT / Misc / HigherEducationMailbox.mbox / Archives_provide_val_.attach / May_91 / os.327 < prev    next >
Text File  |  1991-05-21  |  438b  |  13 lines

  1. strerror perror errno errors system call
  2.  
  3. Q: The strerror() function doesn't seem to work quite right, sometimes.  It sometimes returns an incorrect result, sometimes works.
  4.  
  5. A: strerror() happens to ignore its argument, contrary to the documentation and common sense.  It works directly with errno, rather than its argument.  The workaround: instead of saving errno, save strerror()'s result.
  6.  
  7. QA327
  8.  
  9. Valid for 1.0 
  10. Not valid for 2.0 
  11.  
  12.  
  13.