errorp.3

MudOS_0.9.18/doc/efuns/types/errorp.3 · 562 B

From the archive MudOS_0.9.18.tar.gz

Download the archive   « Back to the archive contents

.\"determine whether or not a given variable is an error code
.TH errorp 3
 
.SH NAME
errorp() - determine whether or not a given variable is an error code
 
.SH SYNOPSIS
int errorp(mixed arg);
 
.SH DESCRIPTION
Returns 1 if `arg' is an integer that is an error code.  
.PP
Eventually efuns will be modified to return standard error codes so that 
code like this will be possible: 
.PP
 if (errorp(result = efun_call())) printf("error = %d\n", result); 
.PP
Will also be a perror(result) efun to return error string that goes with 
a particular error integer.  

Site Stats

Snippets: 1791
Codebases: 571