Forgot to #include stdlib.h for atoi implementation.