
STRERROR(3)                UNIX Programmer's Manual                STRERROR(3)

NNAAMMEE
     ppeerrrroorr, ssttrreerrrroorr, ssyyss__eerrrrlliisstt, ssyyss__nneerrrr - system error messages

SSYYNNOOPPSSIISS
     _e_x_t_e_r_n _i_n_t _e_r_r_n_o_;
     _e_x_t_e_r_n _c_h_a_r _*_s_y_s___e_r_r_l_i_s_t_[_]_;

     ##iinncclluuddee <<ssttddiioo..hh>>

     _v_o_i_d
     ppeerrrroorr(_c_o_n_s_t _c_h_a_r _*_s_t_r_i_n_g)

     _c_h_a_r _*
     ssttrreerrrroorr(_i_n_t _e_r_r_n_u_m)

DDEESSCCRRIIPPTTIIOONN
     The ssttrreerrrroorr() and ppeerrrroorr() functions lookup the error message string af-
     filiated with an error number.

     The sstteerrrroorr() function accepts an error number argument _e_r_r_n_u_m and re-
     turns a pointer to the corresponding message string.

     The ppeerrrroorr() function finds the error message corresponding to the cur-
     rent value of the global variable _e_r_r_n_o and writes it, followed by a new-
     line, to the _s_t_d_e_r_r. If the argument _s_t_r_i_n_g is non-NULL it is pre-
     appended to the message string and separated from it by a colon and space
     (`: '). If _s_t_r_i_n_g is NULL only the error message string is printed.

     The message strings can be accessed directly using the external character
     array _s_y_s___e_r_r_l_i_s_t. The external value _s_y_s___n_e_r_r contains a count of the
     messages in _s_y_s___e_r_r_l_i_s_t. The use of these variables is deprecated;
     ssttrreerrrroorr() should be used instead.

SSEEEE AALLSSOO
     intro(2),  psignal(3)

HHIISSTTOORRYY
     The ssttrreerrrroorr() and ppeerrrroorr() functions are currently under development.

4th Berkeley Distribution        June 29, 1991                               1























