summaryrefslogtreecommitdiff
path: root/input.c
AgeCommit message (Collapse)Author
2024-04-03new check_length_fix_stdin. It checks length of buffers and seems toOskar
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.
2024-03-31Singles doneOskar
2024-03-31Started integrating the input system. Mainly trying to integrate theOskar
'singles' so far because they will be the easiest.
2024-03-31Alright. 'D' and 'X' will work exactly like validate_LN with MODE_N. MayOskar
change in the future but for now it will only support MODE_N for simplicity sake. I really want the new input system out.
2024-03-29Renamed validate_L to validate_LN. The name may change. I should alsoOskar
find a better way to implement vlaidate_check_p_m but for now all that matters is that its working correctly... Which i think it does...
2024-03-29Removed validate_N because its redundantOskar
2024-03-28added length check, its kinda bad not not testedOskar
2024-03-27More progress, works wellOskar
2024-03-21added i_validation.c and i_validation.h to make the code a bit easier and ↵Oskar
readable. Its my preparation for when i start dividing the validation functions in to smaller pieces
2024-03-14Removed bug from N, very messy code but at least it works nowOskar
2024-03-13fixed major bug on input validate_L, same bug still remains on validate_N ↵Oskar
though. Also changed requirements for N
2024-03-07improved 7ed.c to make using the current flags a little smarterOskar
2024-03-07validate_N() is done. I removed some printf tests from the code.Oskar
2024-03-07validate_N() is done, still need to do some cleanupOskar
2024-03-04Started working on validate_N(), its very similar to validate_L() so its ↵Oskar
mostly copy pasting with some logic changes. Mostly just moving stuff around to fit the requirements for N
2024-03-03New requirements for NOskar
2024-03-03validating L is doneoskar
2024-02-18Organised test directory and did some logic fixes to smodeOskar
2024-02-15input.c fixed most logic for L, there may still be issues but most glaring ↵Oskar
issues are gone, i think.
2024-02-12New work in progress input system in input.cOskar