diff options
| author | Warner Losh <imp@FreeBSD.org> | 1997-03-02 20:07:37 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 1997-03-02 20:07:37 +0000 |
| commit | 8f58838644f4719bca279b8c7133e9c8e94502a3 (patch) | |
| tree | b98ad8d0809ce7d7ef4e59d5460963c6c24db0ab /lib/libc | |
| parent | ee2bf73496dc0e978e40fc12781b84fbd30e9282 (diff) | |
Notes
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/stdtime/strftime.3 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/libc/stdtime/strftime.3 b/lib/libc/stdtime/strftime.3 index 9a1f2d5bfff9..0ff3ad77dc69 100644 --- a/lib/libc/stdtime/strftime.3 +++ b/lib/libc/stdtime/strftime.3 @@ -66,13 +66,19 @@ and one other character. .Pp No more than .Fa maxsize -characters will be placed into the array. +characters will be placed into the array. If more characters than +.Fa maxsize +could have been written into +.Fa buf +then +.Fa bug +will not be NUL terminated. If the total number of resulting characters, including the terminating -null character, is not more than +NUL character, is not more than .Fa maxsize , .Fn strftime returns the number of characters in the array, not counting the -terminating null. +terminating NUL. Otherwise, zero is returned. .Pp Each conversion specification is replaced by the characters as |
