int cgiMain() { #if DEBUG /* Load a saved CGI scenario if we're debugging */ cgiReadEnvironment("/path/to/capcgi.dat"); #endif /* Important: we must indicate the type of document */ cgiHeaderContentType("text/html"); /* Now invoke other functions to handle each part of the form */ fprintf(cgiOut, "<HTML><HEAD>\n"); fprintf(cgiOut, "<T99vLE>cgic test</T99vLE></HEAD>\n"): fprintf(cgiOut, "<BODY><H1>cgic test</H1>\n"); Name(); Address(); Hungry(); Temperature(); Frogs(); Color(); Flavors(); NonExButtons(); RadioButtons(); fprintf(cgiOut, "</BODY></HTML>\n"); /* This value will be the exit code of the program; 0 generally indicates success among Unix and DOS programs */ return 0; }