Following prototypes apply for localtime and gmtime:
I wonder, should I understand that localtime and gmtime do allocate a "struct tm" element, and so I must do a free() on them after using the value?
If they do not allocate it, where does its memory come from?
Code:
struct tm *localtime(const time_t *timer); struct tm *gmtime(const time_t *timer);
If they do not allocate it, where does its memory come from?
Comment