(#wg7xx5q) @prologic@twtxt.net That is a lot of code, yes. 😅 Mine is shorter, has more naive searching (it searches a word like red
and then backtracks to the number before it; completely ignoring the semi-colons because they don’t matter), and – like any good C program – will crash horribly on malformed input. 👌😂🥴
https://www.uninformativ.de/git/advent-of-code/file/2023/day02/s.c.html
It really depends on what you’re after. I’d never write code like this in “real-world applications”. But for these puzzles and my DOS use case, it’s “good enough”. 😅
#6ysm7cq