Very cool, thanks for sharing!
If, like me, you're trying to compile it, don't forget to set the
-std=gnu89
flag in gcc, so: gcc -std=gnu89 -w -o maze maze.c
Then run it as: echo 10 | ./mazeVery cool, thanks for sharing!
If, like me, you're trying to compile it, don't forget to set the
-std=gnu89
flag in gcc, so: gcc -std=gnu89 -w -o maze maze.c
Then run it as: echo 10 | ./maze
Got seg fault (gcc 15.2.0 on nixos 26.05) when writing to
Had to add: and change to: Works now: