Trivial example
1 /* Title: Trivial example */ 2 3 #include <stdlib.h> 4 #include <stdio.h> 5 6 int 7 main(void) 8 { 9 10 puts("Status: 200 OK\r"); 11 puts("Content-Type: text/html\r"); 12 puts("\r"); 13 puts("Hello, world!"); 14 return(EXIT_SUCCESS); 15 }
gcc -I/usr/local/include -static -o simple simple.c -L/usr/local/lib -lksql -lsqlite3