diff options
author | Oskar <[email protected]> | 2024-03-07 21:41:07 +0100 |
---|---|---|
committer | Oskar <[email protected]> | 2024-03-07 21:41:07 +0100 |
commit | 256bf3acc9c21c55c955824f1a00bc7cba6b85a8 (patch) | |
tree | 1a7697a839ded229057c2e94762d8b12a2ec9b1a /input.h | |
parent | 1f71f8a1e0b17260e746e86aa8b3cb3dbe42771c (diff) |
improved 7ed.c to make using the current flags a little smarter
Diffstat (limited to 'input.h')
-rw-r--r-- | input.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -0,0 +1,18 @@ +#include <stdlib.h> +#include <stdio.h> +#include <unistd.h> +#include <string.h> +#include <errno.h> +#include "7ed.h" +#include <stdint.h> + +#define SMODE_MAX_SIZE 33 +#define SMODE_MAX_INPUT_SIZE 32 + +#define _ONE 1 +#define _SINGLE 1 +#define _MULTIPLE 2 +#define _FAIL '?' // final return value from smode_input to indicate an invalid +#define _VALID 0 // this may only be used to mark as valid or invalid from the validate functions +#define _INVALID -1 // this may only be used to mark as valid or invalid from the validate functions + // _FAIL and _INVALID are sorta tied to eachother
\ No newline at end of file |