Added more C example code.
This commit is contained in:
parent
03993bb64c
commit
760a67de3a
1 changed files with 10 additions and 1 deletions
11
index.c
11
index.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue