From 8145ba753df183f0d48cd6e9cc5a01b215eb31dc Mon Sep 17 00:00:00 2001 From: Julian Weigt Date: Fri, 16 Jan 2026 13:41:52 +0100 Subject: Properly use header files and change return type for conversion from bool to int. --- misc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'misc.c') diff --git a/misc.c b/misc.c index 9de0044..df95051 100644 --- a/misc.c +++ b/misc.c @@ -1,11 +1,13 @@ +#include "misc.h" //for reading from stdin #include +#include #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. -- cgit v1.2.3