Staredit Network

Staredit Network -> Computers and Technical -> C problem
Report, edit, etc...Posted by Doodle77(MM) on 2005-11-19 at 10:21:38
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.
Next Page (1)