Added more C example code.

This commit is contained in:
Johannes Findeisen 2024-04-30 01:36:14 +02:00
commit 760a67de3a

11
index.c
View file

@ -2,6 +2,15 @@
int main() {
printf("Content-type: text/plain\n\n");
printf("Hello from C\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;
}