]> git.saurik.com Git - apple/libc.git/blob - stdtime/FreeBSD/strftime.3.patch
a89500629ba75f03dc050adf19ad40e8bc30f8d4
[apple/libc.git] / stdtime / FreeBSD / strftime.3.patch
1 --- strftime.3.orig Fri Mar 11 07:33:40 2005
2 +++ strftime.3 Fri Mar 11 07:43:03 2005
3 @@ -40,7 +40,8 @@
4 .Dt STRFTIME 3
5 .Os
6 .Sh NAME
7 -.Nm strftime
8 +.Nm strftime ,
9 +.Nm strftime_l
10 .Nd format date and time
11 .Sh LIBRARY
12 .Lb libc
13 @@ -53,6 +54,15 @@
14 .Fa "const char * restrict format"
15 .Fa "const struct tm * restrict timeptr"
16 .Fc
17 +.In xlocale.h
18 +.Ft size_t
19 +.Fo strftime_l
20 +.Fa "char * restrict buf"
21 +.Fa "size_t maxsize"
22 +.Fa "const char * restrict format"
23 +.Fa "const struct tm * restrict timeptr"
24 +.Fa "locale_t loc"
25 +.Fc
26 .Sh DESCRIPTION
27 The
28 .Fn strftime
29 @@ -83,6 +93,14 @@
30 terminating NUL.
31 Otherwise, zero is returned and the buffer contents are indeterminate.
32 .Pp
33 +While the
34 +.Fn strftime
35 +function uses the current locale, the
36 +.Fn strftime_l
37 +function may be passed a locale directly. See
38 +.Xr xlocale 3
39 +for more information.
40 +.Pp
41 The conversion specifications are copied to the buffer after expansion
42 as follows:-
43 .Bl -tag -width "xxxx"
44 @@ -226,7 +244,8 @@
45 .Xr ctime 3 ,
46 .Xr printf 3 ,
47 .Xr strptime 3 ,
48 -.Xr wcsftime 3
49 +.Xr wcsftime 3 ,
50 +.Xr xlocale 3
51 .Sh STANDARDS
52 The
53 .Fn strftime