Please someone help me convert argv from char/string to int, or float or any other numeric format...I need to write program which will be able to count with numbers inserted as parameters...thanks
Hammer,
alas, atoi() returns an undefined value in case of overflow only (may be because of most of CPUs do not report int overflow condition). The language Standard specifies that zero is returned value if atoi() can't convert its argument to number...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.