#include <stdio.h>

void main() {

    /** Imprimir o header de resposta CGI, exigido para toda saida HTML. **/
    /** Notar o \n adicional, para enviar a linha vazia. **/
    printf("Content-type: text/html\n\n") ;
    
    /** Imprimir a pagina de resposta HTML em STDOUT. **/
    printf("<html>\n") ;
    printf("<head><title>www.fredbf.com</title></head>\n") ;
    printf("<body bgcolor=\"#999999\">\n") ;
    printf("<img src=\"http://www.fredbf.com/imagens/logo.gif\" width=\"121\" height=\"60\">");
    printf("<h1>Exemplo de um programa simples em CGI (testeCGI.c)</h1>\n<BR>") ;
    
    printf("</body>\n") ;
    printf("</html>\n") ;

}
