If the passed t pointer is not a null pointer, always assign the return value to the object it points to, regardless of whether the return value is an error. This is what the GNU C Library does, and this is also the expected behavior according to the latest draft of the C programming language standard (C11 ISO/IEC 9899:201x WG14 N1570, dated 2011-04-12): Signed-off-by: Benoît Thébaudeau <benoit@wsystem.com> |
||
---|---|---|
.. | ||
Makefile.am | ||
Makefile.in | ||
asctime.c | ||
asctime_r.c | ||
clock.c | ||
ctime.c | ||
ctime_r.c | ||
difftime.c | ||
gettzinfo.c | ||
gmtime.c | ||
gmtime_r.c | ||
lcltime.c | ||
lcltime_r.c | ||
local.h | ||
mktime.c | ||
month_lengths.c | ||
strftime.c | ||
strptime.c | ||
time.c | ||
time.tex | ||
tzcalc_limits.c | ||
tzlock.c | ||
tzset.c | ||
tzset_r.c | ||
tzvars.c | ||
wcsftime.c |