WHY is this crashing???!!!
Pat Rankin
rankin at eql7.caltech.edu
Sat Jun 8 08:04:42 AEST 1991
In article <6246 at mahendo.Jpl.Nasa.Gov>, robert at triton.jpl.nasa.gov (Robert Angelino) writes...
> I have this code that keeps going out to lunch. Any suggestions
> are welcome.
Why all the VMS-specific date/time manipulation? time(), mktime()
and asctime() work fine. If you can't use mktime() for some reason, then
SYS$NUMTIM() will fill in an array of date/time fields.
> date->tm_year = atoi(ptr);
> It CRASHES at the "atoi" call.
> %SYSTEM-F-ACCVIO, access violation, reason mask=04, virtual address=00000014,
'date' is almost certainly a NULL pointer. Perhaps it's time to learn
how to use the debugger?
Pat Rankin, rankin at eql.caltech.edu
More information about the Comp.lang.c
mailing list