diff options
Diffstat (limited to 'man3/strptime.3')
-rw-r--r-- | man3/strptime.3 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/man3/strptime.3 b/man3/strptime.3 index 69996f398..0a1bf4c49 100644 --- a/man3/strptime.3 +++ b/man3/strptime.3 @@ -393,13 +393,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); |