LPC Library Functions: errorp

NAME

errorp() - determine whether or not a given variable is an error code

SYNOPSIS

int errorp( mixed arg );

DESCRIPTION

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: .IP .nf if (errorp(result = efun_call())) printf("error = %d\\n", result); .fi

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

SEE ALSO

nullp(), undefinedp()

Page design by Frank Jacquette & Tim Hollebeek
Copyright (C) 1998 Tim Hollebeek & Frank Jacquette
Back to MudOS