home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / string / syserrls.txh < prev   
Encoding:
Text File  |  1995-07-10  |  771 b   |  43 lines

  1. @node sys_errlist, stdio
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <errno.h>
  6.  
  7. extern char *sys_errlist[];
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This array contains error messages, indexed by @code{errno}, that
  13. describe the errors. 
  14.  
  15. @subheading Example
  16.  
  17. @example
  18. printf("Error: %s\n", sys_errlist[errno]);
  19. @end example
  20.  
  21. @c ----------------------------------------------------------------------
  22. @node sys_nerr, stdio
  23. @subheading Syntax
  24.  
  25. @example
  26. #include <errno.h>
  27.  
  28. extern int sys_nerr;
  29. @end example
  30.  
  31. @subheading Description
  32.  
  33. This variable gives the number of error messages in @code{sys_errlist}
  34. (@pxref{sys_errlist}). 
  35.  
  36. @subheading Example
  37.  
  38. @example
  39. if (errno < sys_nerr)
  40.   printf("Error: %s\n", sys_errlist[errno]);
  41. @end example
  42.  
  43.