On Jan 23, 10:04 pm, "sam" <samsoft...@yahoo.comwrote:
Hi, whats the meaning of atoi function here.
int atoi(char __ch)
{
switch(__ch)
{
case '0':return 0;
case '1':return 1;
case '2':return 2;
case '3':return 3;
case '4':return 4;
case '5':return 5;
case '6':return 6;
case '7':return 7;
case '8':return 8;
case '9':return 9;
};
return -1;
YOUR /Above written atoi takes one input character and return
appropriate integer or -1 as error.
1. Give it Good Name so it will not conflict.
2. Dont Provide input string, it is asking for Input char.
3. I think __varname is platform reserved variable, but i am not sure.
4. Is there need of this function cant you use atoi (widely used) ?
5. Why I am answering to this question ?
>
}- Hide quoted text -- Show quoted text -