3 ms·
You should also get in the habit of compiling with warnings (-Wall -Wextra -Werror) and running with valgrind. And writing test programs (in this case they coul
by leif 14y ago
You should also get in the habit of compiling with warnings (-Wall -Wextra -Werror) and running with valgrind. And writing test programs (in this case they could be shell scripts, unless you want to split your code into a library and an executable, so you can test the library with c programs. That lets you run your tests with valgrind.