mirror of https://github.com/mkerrisk/man-pages
Add some words to make clear that the string returned by
ctime() and asctime() is null-terminated.
This commit is contained in:
parent
72a570f04c
commit
0e8fe3b46f
|
@ -30,7 +30,7 @@
|
|||
.\" Modified 2001-12-13, joey, aeb
|
||||
.\" Modified 2004-11-16, mtk
|
||||
.\"
|
||||
.TH CTIME 3 2008-04-06 "" "Linux Programmer's Manual"
|
||||
.TH CTIME 3 2008-07-23 "" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
asctime, ctime, gmtime, localtime, mktime, asctime_r, ctime_r, gmtime_r,
|
||||
localtime_r \- transform date and time to broken-down time or ASCII
|
||||
|
@ -145,7 +145,8 @@ The call
|
|||
.BI ctime( t )
|
||||
is equivalent to
|
||||
.BI asctime(localtime( t )) \fR.
|
||||
It converts the calendar time \fIt\fP into a string of the form
|
||||
It converts the calendar time \fIt\fP into a
|
||||
null-terminated string of the form
|
||||
.sp
|
||||
.RS
|
||||
"Wed Jun 30 21:49:08 1993\\n"
|
||||
|
@ -205,7 +206,7 @@ It need not set \fItzname\fP.
|
|||
The
|
||||
.BR asctime ()
|
||||
function converts the broken-down time value
|
||||
\fItm\fP into a string with the same format as
|
||||
\fItm\fP into a null-terminated string with the same format as
|
||||
.BR ctime ().
|
||||
The return value points to a statically allocated string which might be
|
||||
overwritten by subsequent calls to any of the date and time functions.
|
||||
|
|
Loading…
Reference in New Issue