Annotation of coherent/a/usr/man/ALL/strerror, revision 1.1.1.1

1.1       root        1: 
                      2: 
                      3: strerror()               String Function               strerror()
                      4: 
                      5: 
                      6: 
                      7: 
                      8: Translate an error number into a string
                      9: 
                     10: #include <string.h>
                     11: cchhaarr *ssttrreerrrroorr(_e_r_r_o_r); iinntt _e_r_r_o_r;
                     12: 
                     13: strerror helps to generate  an error message.  It takes the argu-
                     14: ment error, which presumably is an error code generated by an er-
                     15: ror condition in a program, and  may return a pointer to the cor-
                     16: responding error message.
                     17: 
                     18: The error  numbers recognized and the  texts of the corresponding
                     19: error messages are set by COHERENT.
                     20: 
                     21: ***** See Also *****
                     22: 
                     23: perror(), string functions, string.h
                     24: 
                     25: ***** Notes *****
                     26: 
                     27: strerror returns  a pointer to  a static array that  may be over-
                     28: written by a subsequent call to strerror.
                     29: 
                     30: strerror  differs  from   the  related  function  perror  in  the
                     31: following ways:  strerror receives  the error number  through its
                     32: argument error,  whereas perror reads the  global constant errno.
                     33: Also, strerror  returns a pointer  to the error  message, whereas
                     34: perror  writes  the  message  directly  into the  standard  error
                     35: stream.
                     36: 
                     37: The error  numbers recognized and  the texts of  the messages as-
                     38: sociated with  each error number  are set by  COHERENT.  However,
                     39: strerror and perror return the same error message when handed the
                     40: same error number.
                     41: 
                     42: 
                     43: 
                     44: 
                     45: 
                     46: 
                     47: 
                     48: 
                     49: 
                     50: 
                     51: 
                     52: 
                     53: 
                     54: 
                     55: 
                     56: 
                     57: 
                     58: 
                     59: 
                     60: 
                     61: 
                     62: 
                     63: 
                     64: COHERENT Lexicon                                           Page 1
                     65: 
                     66: 

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.