

perror()                 General Function                perror()




System call error messages

#iinncclluuddee <eerrrrnnoo.hh>
ppeerrrroorr(_s_t_r_i_n_g)
cchhaarr *_s_t_r_i_n_g; eexxtteerrnn iinntt _s_y_s__n_e_r_r; eexxtteerrnn cchhaarr *_s_y_s__e_r_r_l_i_s_t[];

perror prints an error message on the standard error device.  The
message  consists of  the argument  string,  followed by  a brief
description of  the last system  call that failed.   The external
variable errno contains  the last error number.  Normally, string
is the perror of the command that failed or a file perror.

The external array sys_errlist gives the list of messages used by
perror.  The  external sys_nerr gives  the number of  messages in
the list.

***** See Also *****

errno, errno.h, general functions





































COHERENT Lexicon                                           Page 1


