mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
ctime() does not remove the trailing newline
This commit is contained in:
@@ -8,18 +8,17 @@ TYPES
|
|||||||
return string
|
return string
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
The ctime() builtin returns the string formed by the first 24
|
The ctime() builtin returns the string formed by the
|
||||||
characters returned by the C library function, ctime(): E.g.
|
characters returned by the C library function, ctime(): E.g.
|
||||||
|
|
||||||
"Mon Oct 28 00:47:00 1996"
|
"Mon Oct 28 00:47:00 1996\n"
|
||||||
|
|
||||||
The 25th ctime() character, '\n' is removed.
|
|
||||||
|
|
||||||
EXAMPLE
|
EXAMPLE
|
||||||
; ## NOTE: Your output will likely vary:
|
; ## NOTE: Your output will likely vary:
|
||||||
|
|
||||||
; printf("The time is now %s.\n", ctime())
|
; printf("The time is now %s.\n", ctime())
|
||||||
The time is now Mon Apr 15 12:41:44 1996.
|
The time is now Mon Apr 15 12:41:44 1996
|
||||||
|
.
|
||||||
|
|
||||||
LIMITS
|
LIMITS
|
||||||
none
|
none
|
||||||
|
Reference in New Issue
Block a user