/* hello.c: a CGI example by Thomas Boutell. */ /* Bring in the declarations for standard C input and output */ #include /* Declare the main function */ int main(int argc, char *argv[]) { /* First indicate the content type of the document; in this case we are outputting HTML. Note that we output TWO carriage returns after the content type. This is important! */ printf("Content-type: text/html\n\n"); /* Output a proper HTML document, with and tags. */ printf("\n"); printf("Hello, World\n"); printf("\n"); printf("\n"); printf("

Hello, World

\n"); printf("\n"); return 0; }