I'm using itoa with an unsigned int, but itoa is handling itoa as a signed int :
The above code makes str="-32768" . Is this the normal behavior of itoa ? Shouldn't itoa handle foo as an unsigned integer ?
Using ltoa gives me the right answer.