Getting warning in C for 'atoi' function Getting warning in C for 'atoi' function xcode xcode

Getting warning in C for 'atoi' function


You have to include stdlib.h

#include <stdlib.h>

Next time you encounter similar warnings just run man atoi and the manual pages should state that which header file should be included.