1 --- fgetws.3.bsdnew 2009-11-11 13:33:05.000000000 -0800
2 +++ fgetws.3 2009-11-11 13:33:05.000000000 -0800
10 .Nd get a line of wide characters from a stream
17 -.Fn fgetws "wchar_t * restrict ws" "int n" "FILE * restrict fp"
19 +.Fa "wchar_t *restrict ws"
21 +.Fa "FILE *restrict stream"
28 +.Fa "wchar_t *restrict ws"
30 +.Fa "FILE *restrict stream"
36 @@ -53,7 +68,7 @@ function
37 reads at most one less than the number of characters specified by
42 and stores them in the wide character string
44 Reading stops when a newline character is found,
45 @@ -62,6 +77,14 @@ The newline, if any, is retained.
46 If any characters are read and there is no error, a
48 character is appended to end the string.
52 +function uses the current locale, the
54 +function may be passed a locale directly. See
56 +for more information.
58 Upon successful completion,
60 @@ -80,7 +103,8 @@ and the buffer contents are indeterminat
64 -does not distinguish between end-of-file and error, and callers must use
65 +does not distinguish between end-of-file and error;
70 @@ -92,7 +116,7 @@ function will fail if:
76 argument is not a readable stream.
78 The data obtained from the input stream does not form a valid
79 @@ -112,7 +136,8 @@ or