Moved C example to bin/.
This commit is contained in:
parent
7bb22e8763
commit
cba8604d0e
1 changed files with 0 additions and 0 deletions
16
bin/index.c
Normal file
16
bin/index.c
Normal 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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue