In the book "The C programming language"; second edition, chapter 2.7 there is a snippet which is supposed to:
"convert a string of digits into its numeric equivalent".
int atoi(char s[])
{
int i, n;
n = 0;
for ( i = 0; s >= '0' && s <= '9'; ++i)
n = 10 * n + (s - '0')
return n;
}
Thanks to both of you, i understand it much better now (now fully, but i am on my way). Yes, siva shankar, what you just explained is exactly what i did not see.