Hi,
can anyone help me to solve this problem?
I have this code:
FILE *in;
char i =fgetc(in);
int perm=0;
perm =atoi(&i);
printf("%d\n", perm);
if first character in my "in" file is 2, the output is 28;
if ------------------------------- is 3, -------------- 38, and so on...
any ideas what is wrong with this code?
thanks