As I was working on converting string to int. I tried few methods from online like atoi, sscanf, strtol.
However, the conversion always convert "111" to 0.