C implementation is broken


#1

Even the given solutions don’t work. This is because atoi is already defined in C’s stdlib library, and (re/over)writing the function doesn’t help. I can say this because the same C code runs perfectly fine in C++, but gives error in C. Probably, stdlib’s atoi is called every time (I tried naming it “matoi” too, but no help), so writing a new function body is of no use. Please fix this.