Moved C example to bin/.

This commit is contained in:
Johannes Findeisen 2024-05-09 00:17:44 +02:00
commit cba8604d0e

16
bin/index.c Normal file
View file

@ -0,0 +1,16 @@
#include<stdio.h>
int main() {
printf("Content-type: text/plain\n\n");
printf("Hello from C!\n\n");
int c;
FILE *file;
file = fopen("index.c", "r");
if (file) {
while ((c = getc(file)) != EOF)
putchar(c);
fclose(file);
}
return 0;
}