#include "stdio.h"
  #include <stdlib.h>
     
  void main(void)
  {
     printf("Content-type: text/html\r\n\r\n"); 
     printf("<title>CGI Hello World</title>"); 
     printf("<h1>Hello world!</h1>");
  }
     
and the same script using FastCGI...
     
  #include "fcgi_stdio.h"
  #include <stdlib.h>
     
  void main(void)
  {
     while (FCGI_Accept() >= 0) {
       printf("Content-type: text/html\r\n\r\n"); 
       printf("<title>CGI Hello World</title>"); 
       printf("<h1>Hello world!</h1>");
     }
  }