For some reason, when input a short containing 59 into this function, it outputs zero.
CODE
int fputint(inttc)
int inttc;
{
sprintf(outint,"%d",inttc);
fputs(outint,appendfil);
return *outint;
}
note: outint is a 12 character array.
Im still just learning C so i have no idea why this happens.