From 31ce10b31198128de4983667820319a193adb976 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Mon, 27 May 2019 23:01:11 +0100 Subject: Make debug output optional and disabled by default. --- functions.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'functions.h') diff --git a/functions.h b/functions.h index 8fb5145..29518aa 100644 --- a/functions.h +++ b/functions.h @@ -12,6 +12,7 @@ #include #include #include +#include #define MAXDATASIZE 513 // max number of bytes we can get at once (RFC2812 says 512, plus one for null terminator) @@ -20,6 +21,9 @@ #define NO_INPUT 1 #define TOO_LONG 2 +// Print debugging output if enabled +void debugprint(char *format, ...); + // Get stdin line with buffer overrun protection int getstdin(char *prompt, char *buff, size_t sz); -- cgit v1.2.3