
errorp(3)             LPC Library Functions             errorp(3)

NNAAMMEE
       errorp() - determine whether or not a given variable is an
       error code

SSYYNNOOPPSSIISS
       int errorp( mixed arg );

DDEESSCCRRIIPPTTIIOONN
       Returns 1 if `arg' is an integer that is an error code.

       Eventually efuns will be modified to return standard error
       codes so that code like this will be possible:

              if (errorp(result = efun_call()))
                  printf("error = %d\n", result);

       In  future,  there  will  also be a perror(result) efun to
       return error string that  goes  with  a  particular  error
       integer.

SSEEEE AALLSSOO
       nullp(3), undefinedp(3)

Majik                      26 Jul 1997                          1

