diff options
Diffstat (limited to 'man3/strptime.3')
-rw-r--r-- | man3/strptime.3 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/man3/strptime.3 b/man3/strptime.3 index a4c48a652..6dd059045 100644 --- a/man3/strptime.3 +++ b/man3/strptime.3 @@ -9,7 +9,7 @@ .\" Modified, aeb, 2001-08-31 .\" Modified, wharms 2001-11-12, remark on white space and example .\" -.TH strptime 3 2023-02-05 "Linux man-pages 6.03" +.TH strptime 3 2023-07-20 "Linux man-pages 6.05.01" .SH NAME strptime \- convert a string representation of time to a time tm structure .SH LIBRARY @@ -264,22 +264,22 @@ returns NULL. .SH ATTRIBUTES For an explanation of the terms used in this section, see .BR attributes (7). -.ad l -.nh .TS allbox; lbx lb lb l l l. Interface Attribute Value T{ +.na +.nh .BR strptime () T} Thread safety MT-Safe env locale .TE -.hy -.ad .sp 1 .SH STANDARDS -POSIX.1-2001, POSIX.1-2008, SUSv2. +POSIX.1-2008. +.SH HISTORY +POSIX.1-2001, SUSv2. .SH NOTES In principle, this function does not initialize .I tm @@ -391,13 +391,13 @@ and #include <stdlib.h> #include <string.h> #include <time.h> - +\& int main(void) { struct tm tm; char buf[255]; - +\& memset(&tm, 0, sizeof(tm)); strptime("2001\-11\-12 18:31:01", "%Y\-%m\-%d %H:%M:%S", &tm); strftime(buf, sizeof(buf), "%d %b %Y %H:%M", &tm); |