


PEKS-ERRNUM(3)  PEKS 0.8.12 Programming Interface  PEKS-ERRNUM(3)


NNAAMMEE
       peks_strerr, errnum, errstr - peks error message handler

SSYYNNOOPPSSIISS
       ##iinncclluuddee <<ppeekkss..hh>>

       cchhaarr **ppeekkss__ssttrreerrrr ((uunnssiiggnneedd _e_r_r_o_r___n_u_m));;


       ##iinncclluuddee <<mmeessssaaggeess..hh>>

       iinntt eerrrrnnuumm ((_S_Y_M_B_O_L));;

       ccoonnsstt cchhaarr **eerrrrssttrr ((_S_Y_M_B_O_L));;

DDEESSCCRRIIPPTTIIOONN
       PPeekkss__ssttrreerrrr  (())  returns a descriptive text explaining the
       error number passed as the function argument.  Using error
       codes  from  the  operating systems, only this function is
       equivalent to ssttrreerrrroorr(3).

       EErrrrnnuumm (()) is a macro rather than  a  function,  extracting
       the error string from the argument symbol _S_Y_M_B_O_L.

       EErrrrssttrr  (())  is  a macro rather than a function, extracting
       the error code from tha argument symbol  _S_Y_M_B_O_L.  In  that
       sense, for any valid _S_Y_M_B_O_L, ths function call

           ppeekkss__ssttrreerrrr ((eerrrrnnuumm ((_S_Y_M_B_O_L))))

       returns  literally  the same text as eerrrrssttrr ((_S_Y_M_B_O_L))..  The
       error symbols are all defined in mmeessssaaggeess..hh.

RREETTUURRNN VVAALLUUEE
       The function ppeekkss__ssttrreerrrr (()) never returns  NULL,  so  does
       eerrrrssttrr (()).

SSEEEE AALLSSOO
       eerrrrnnoo(3), ssttrreerrrroorr(3),

AAUUTTHHOORR
       The  fBpeksfP  package where these functions belong to was
       written by Jordan  Hrycaj  <jordan@teddy-net.com>,  origi-
       nally to support the fBnessusfP security scanner.













PEKS CIPHER LAYER          Jun 08, 2000                         1


