diff options
author | Oskar <[email protected]> | 2023-11-11 19:53:40 +0100 |
---|---|---|
committer | Oskar <[email protected]> | 2023-11-11 19:53:40 +0100 |
commit | fee7cad3e72faadd1920e0725081ce5c517a16c6 (patch) | |
tree | c04fb6ccbc61983fa191d438a352a8e96d2819bf /startmode.c | |
parent | 5e239ad4ca0caf83d28da55609ccc3f2d2ed71ea (diff) |
fixed huge bug in write function
Diffstat (limited to 'startmode.c')
-rw-r--r-- | startmode.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/startmode.c b/startmode.c index a6f1395..988b6fd 100644 --- a/startmode.c +++ b/startmode.c @@ -11,7 +11,7 @@ int NCAT(char filename[]) { file = fopen(filename,"r"); if (file == NULL) { - fprintf(stderr, "Cannot open file.\n"); + fprintf(stderr, "Cannot open file. NCAT\n"); return 1; } @@ -127,6 +127,12 @@ int startmode(char filename[]) { case 'A': NCAT(filename); break; + case 'n': + case 'N': + + NEW_LINE(filename); + + break; default: fprintf(stdout, "?\n"); } |