Sponsored Content
Full Discussion: How do it...?
Top Forums Programming How do it...? Post 46259 by mbabeli on Monday 12th of January 2004 09:25:10 AM
Old 01-12-2004
i hope that i got your question right, but is it's what i think then you need to define that number

#define EXIT_AFTER_FAILURE -6
.
.
.
.
.
int main(int argc, char *argv[]){
some functions();
..
..
..
if (some test condition){
return(-6);
}
}

Last edited by mbabeli; 01-12-2004 at 10:59 AM..
 
cgiwrap_init_std(3)						   cgi/cgiwrap.h					       cgiwrap_init_std(3)

NAME
cgiwrap_init_std - Initialize cgiwrap with default functions SYNOPSIS
#include <cgi/cgiwrap.h> void cgiwrap_init_std (int argc, char **argv, char **envp); ARGUMENTS
the arguments to main, namely argc/argv/envp DESCRIPTION
cgiwrap_init_std will initialize the cgiwrap subsystem to use the default CGI functions, ie getenv/putenv/stdio. In reality, all this is doing is setting up the data for the cgiwrap_iterenv() function. RETURN VALUE
None SEE ALSO
cgiwrap_iterenv(3), cgiwrap_putenv(3), cgiwrap_init_emu(3), cgiwrap_writef(3), cgiwrap_init_std(3), cgiwrap_writevf(3), cgiwrap_read(3), cgiwrap_write(3), cgiwrap_getenv ClearSilver 12 July 2007 cgiwrap_init_std(3)

Featured Tech Videos

All times are GMT -4. The time now is 01:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy