--- strptime.3.orig Fri Mar 11 07:33:44 2005 +++ strptime.3 Fri Mar 11 07:40:29 2005 @@ -29,7 +29,8 @@ .Dt STRPTIME 3 .Os .Sh NAME -.Nm strptime +.Nm strptime , +.Nm strptime_l .Nd parse date and time string .Sh LIBRARY .Lb libc @@ -41,6 +42,14 @@ .Fa "const char * restrict format" .Fa "struct tm * restrict timeptr" .Fc +.In xlocale.h +.Ft char * +.Fo strptime_l +.Fa "const char * restrict buf" +.Fa "const char * restrict format" +.Fa "struct tm * restrict timeptr" +.Fa "locale_t loc" +.Fc .Sh DESCRIPTION The .Fn strptime @@ -94,6 +103,14 @@ .Fa timeptr structure with today's date before passing it to .Fn strptime . +.Pp +While the +.Fn strptime +function uses the current locale, the +.Fn strptime_l +function may be passed a locale directly. See +.Xr xlocale 3 +for more information. .Sh RETURN VALUES Upon successful completion, .Fn strptime @@ -107,7 +124,8 @@ .Sh SEE ALSO .Xr date 1 , .Xr scanf 3 , -.Xr strftime 3 +.Xr strftime 3 , +.Xr xlocale 3 .Sh AUTHORS The .Fn strptime