]> git.saurik.com Git - apple/libc.git/blob - stdtime/FreeBSD/strptime.3.patch
Libc-391.5.22.tar.gz
[apple/libc.git] / stdtime / FreeBSD / strptime.3.patch
1 --- strptime.3.orig Fri Mar 11 07:33:44 2005
2 +++ strptime.3 Fri Mar 11 07:40:29 2005
3 @@ -29,7 +29,8 @@
4 .Dt STRPTIME 3
5 .Os
6 .Sh NAME
7 -.Nm strptime
8 +.Nm strptime ,
9 +.Nm strptime_l
10 .Nd parse date and time string
11 .Sh LIBRARY
12 .Lb libc
13 @@ -41,6 +42,14 @@
14 .Fa "const char * restrict format"
15 .Fa "struct tm * restrict timeptr"
16 .Fc
17 +.In xlocale.h
18 +.Ft char *
19 +.Fo strptime_l
20 +.Fa "const char * restrict buf"
21 +.Fa "const char * restrict format"
22 +.Fa "struct tm * restrict timeptr"
23 +.Fa "locale_t loc"
24 +.Fc
25 .Sh DESCRIPTION
26 The
27 .Fn strptime
28 @@ -94,6 +103,14 @@
29 .Fa timeptr
30 structure with today's date before passing it to
31 .Fn strptime .
32 +.Pp
33 +While the
34 +.Fn strptime
35 +function uses the current locale, the
36 +.Fn strptime_l
37 +function may be passed a locale directly. See
38 +.Xr xlocale 3
39 +for more information.
40 .Sh RETURN VALUES
41 Upon successful completion,
42 .Fn strptime
43 @@ -107,7 +124,8 @@
44 .Sh SEE ALSO
45 .Xr date 1 ,
46 .Xr scanf 3 ,
47 -.Xr strftime 3
48 +.Xr strftime 3 ,
49 +.Xr xlocale 3
50 .Sh AUTHORS
51 The
52 .Fn strptime