There was a lot of despair tonight but I eventually finished day 2 part 1 of advent of code.
I successfully use strtok() to parse the input but the hardest part was a typo and a logic error.
I think I need a better way of walking through my code or maybe some unit testing to make sure what I think I'm doing is what I am actually doing.