]> git.saurik.com Git - apple/libc.git/blob - stdio/FreeBSD/fgets.3.patch
045ec3091671cdce37c6a30ae6f1181f2bef97be
[apple/libc.git] / stdio / FreeBSD / fgets.3.patch
1 --- _SB/Libc/stdio/FreeBSD/fgets.3 2003-05-20 15:22:41.000000000 -0700
2 +++ _SB/Libc/stdio/FreeBSD/fgets.3.edit 2006-06-28 16:55:52.000000000 -0700
3 @@ -48,19 +48,19 @@
4 .Sh SYNOPSIS
5 .In stdio.h
6 .Ft char *
7 -.Fn fgets "char * restrict str" "int size" "FILE * restrict stream"
8 +.Fn fgets "char *restrict s" "int n" "FILE *restrict stream"
9 .Ft char *
10 -.Fn gets "char *str"
11 +.Fn gets "char *s"
12 .Sh DESCRIPTION
13 The
14 .Fn fgets
15 function
16 reads at most one less than the number of characters specified by
17 -.Fa size
18 +.Fa n
19 from the given
20 .Fa stream
21 and stores them in the string
22 -.Fa str .
23 +.Fa s .
24 Reading stops when a newline character is found,
25 at end-of-file or error.
26 The newline, if any, is retained.
27 @@ -74,7 +74,7 @@
28 is equivalent to
29 .Fn fgets
30 with an infinite
31 -.Fa size
32 +.Fa n
33 and a
34 .Fa stream
35 of
36 @@ -102,7 +102,7 @@
37 and
38 .Fn gets
39 functions
40 -do not distinguish between end-of-file and error, and callers must use
41 +do not distinguish between end-of-file and error; callers must use
42 .Xr feof 3
43 and
44 .Xr ferror 3
45 @@ -152,11 +152,6 @@
46 .Xr ferror 3 ,
47 .Xr fgetln 3 ,
48 .Xr fgetws 3
49 -.Rs
50 -.%T "The FreeBSD Security Architecture"
51 -.Re
52 -(See
53 -.Pa /usr/share/doc/{to be determined} . )
54 .Sh STANDARDS
55 The functions
56 .Fn fgets