summaryrefslogtreecommitdiff
path: root/input.h
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-04-03 22:22:19 +0200
committerOskar <[email protected]>2024-04-03 22:22:19 +0200
commitefceadecd1bc48e2169bdf693058b2be25249827 (patch)
treed2b8e34c553c3effc0f84664493dbe04c1bd71a5 /input.h
parent44c83f6d38d166a04d71dca697a7ba4d2ea40cdd (diff)
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.
Diffstat (limited to 'input.h')
-rw-r--r--input.h1
1 files changed, 1 insertions, 0 deletions
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);