/*************************************************************************/ /** **/ /** hello_s.c-- simple "hello, world", to demonstrate basic CGI **/ /** output. **/ /** **/ /*************************************************************************/ #include void main() { /** Print the CGI response header, required for all HTML output. **/ /** Note the extra \n, to send the blank line. **/ printf("Content-type: text/html\n\n") ; /** Print the HTML response page to STDOUT. **/ printf("\n") ; printf("CGI Output\n") ; printf("\n") ; printf("

Hello, world.

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