syntax question:
syntax question:
ok this has been bugging me for a while:
in a fprintf function you use %d for integers and %s for characters. what
is the correct variable for time_t ? here's the error from the compiler
and the function that it's called in:
/*compiler gripe*
save.c: In function `fwrite_char':
save.c:162: warning: int format, time_t arg (arg 3)
/*line it's griping about*/
fprintf( fp, "Plyd %d\n", ch->played + (int) (current_time -ch->logon) );
and the culpret is that %d right after Plyd. Anyone know what it would be
besides %d?