version 1.45, 2011/11/02 19:59:40 |
version 1.46, 2011/11/02 23:06:08 |
Line 436 functions conform to |
|
Line 436 functions conform to |
|
Rest of the functions conform to |
Rest of the functions conform to |
.St -p1003.1-2008 . |
.St -p1003.1-2008 . |
.Sh CAVEATS |
.Sh CAVEATS |
The return values point to static data; the data is overwritten by |
The functions that do not take an explicit |
|
.Ft timezone_t |
|
argument return values point to static data; the data is overwritten by |
each call. |
each call. |
The |
For the above functions the |
.Fa tm_zone |
.Fa tm_zone |
field of a returned |
field of a returned |
.Va "struct tm" |
.Va "struct tm" |
Line 446 points to a static array of characters, |
|
Line 448 points to a static array of characters, |
|
will also be overwritten at the next call |
will also be overwritten at the next call |
(and by calls to |
(and by calls to |
.Xr tzset 3 ) . |
.Xr tzset 3 ) . |
|
The functions that do take an explicit |
|
.Ft timezone_t |
|
argument and set the fields of a supplied |
|
.Va "struct tm" |
|
should not call |
|
.Fn tzfree |
|
since the |
|
.Fa tm_zone |
|
field of the |
|
.Va "struct tm" |
|
points to data allocated by |
|
.Fn tzalloc . |
.Pp |
.Pp |
The |
The |
.Fn asctime |
.Fn asctime |