http://git.tuvimen.i2p/aoc2024/tree/13/sol.c
= -1 ); for ( char * ptr =* line ; ( token = strtok_r ( ptr , "=" , & saveptr )); ptr = NULL ) { if ( ptr ) continue ; out [ group ++ ] = ( uint ) atoi ( token ); } return getline ( line , linel , f ); } size_t play ( uint game [ 6 ]) { uint x = 0 , y = 0 ; size_t tokens = 0 ; uint steps = 0 ; int dx = 0 , dy = 0 ; while ( 1 ) { if ( steps >= 100 ) { return 0 ; } if ( game [ 4 ] < x ) { return 0 ; } if ( game [ 5 ] < y ) { return 0 ; } dx =...