|
APPFS
Advanced practical programming for scientists
|
Appfs Example: line wise text input. More...
#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>#include <ctype.h>Go to the source code of this file.
Macros | |
| #define | MAX_LINE_LEN 512 |
Functions | |
| int | process_file (const char *filename) |
| Read a textfile, remove comments and process lines. More... | |
| int | main (int argc, char **argv) |
gcc -O2 -Wall -o ex4_readline ex4_readline.c
Using fgets() for input
Definition in file ex4_readline.c.
| #define MAX_LINE_LEN 512 |
Definition at line 16 of file ex4_readline.c.
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
Definition at line 64 of file ex4_readline.c.
| int process_file | ( | const char * | filename | ) |
| filename | name of file to read |
Definition at line 22 of file ex4_readline.c.
1.8.6