diff options
| author | Julian Weigt <juw@posteo.de> | 2026-01-16 13:41:52 +0100 |
|---|---|---|
| committer | Julian Weigt <juw@posteo.de> | 2026-02-04 15:55:53 +0100 |
| commit | 8145ba753df183f0d48cd6e9cc5a01b215eb31dc (patch) | |
| tree | 6ab91cd3774bb42d55c196db26387f67bf082da3 /misc.c | |
| parent | 5c0dc646b78e2d7ef25088ac78397e2ed613cba1 (diff) | |
Properly use header files and change return type for conversion from bool to int.
Diffstat (limited to 'misc.c')
| -rw-r--r-- | misc.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,11 +1,13 @@ +#include "misc.h" //for reading from stdin #include <string.h> +#include <stdio.h> #define OK 0 #define NO_INPUT 1 #define TOO_LONG 2 -static int getLine (char *prmpt, char *buff, size_t sz) { +int getLine (char *prmpt, char *buff, size_t sz) { int ch, extra; // Get line with buffer overrun protection. |
