From efceadecd1bc48e2169bdf693058b2be25249827 Mon Sep 17 00:00:00 2001 From: Oskar Date: Wed, 3 Apr 2024 22:22:19 +0200 Subject: new check_length_fix_stdin. It checks length of buffers and seems to also fix the situation where if i input more characters in to fgets than allowed the characters sort of get stuck in stdin and thats a problem. Seems like this function fixes this. --- input.h | 1 + 1 file changed, 1 insertion(+) (limited to 'input.h') diff --git a/input.h b/input.h index cd4ef19..c2b87ef 100644 --- a/input.h +++ b/input.h @@ -19,3 +19,4 @@ // _FAIL and _INVALID are sorta tied to eachother int smode_input(char *single, char **multiple, uint64_t focus); +int check_length_fix_stdin(char *smode_buf); -- cgit v1.2.3