Doesn't this code example have a bug ???
I was looking at the code example for mktime here
http://www.cplusplus.com/reference/clibrary/ctime/mktime/
and am not sure this makes sense ....
the variable timeinfo is declared as a pointer to struct tm, and then used.
Is that valid ?
Should somethig like
timeinfo = new tm;
be done so as to reserve space for the structure ?
Last edited on
Topic archived. No new replies allowed.