update return values for endpwent and setpwent
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 31 Oct 1985 09:35:49 +0000 (01:35 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Thu, 31 Oct 1985 09:35:49 +0000 (01:35 -0800)
SCCS-vsn: lib/libc/gen/getpwent.3 6.2

usr/src/lib/libc/gen/getpwent.3

index 7a661a9..259e5d8 100644 (file)
@@ -1,4 +1,4 @@
-.\"    @(#)getpwent.3  6.1 (Berkeley) %G%
+.\"    @(#)getpwent.3  6.2 (Berkeley) %G%
 .\"
 .TH GETPWENT 3  ""
 .AT 3
 .\"
 .TH GETPWENT 3  ""
 .AT 3
@@ -16,9 +16,9 @@ getpwent, getpwuid, getpwnam, setpwent, endpwent, setpwfile \- get password file
 .B struct passwd *getpwnam(name)
 .B char *name;
 .PP
 .B struct passwd *getpwnam(name)
 .B char *name;
 .PP
-.B int setpwent()
+.B setpwent()
 .PP
 .PP
-.B int endpwent()
+.B endpwent()
 .PP
 .B setpwfile(name)
 .B char *name;
 .PP
 .B setpwfile(name)
 .B char *name;
@@ -81,11 +81,14 @@ is found
 .SH "SEE ALSO"
 getlogin(3), getgrent(3), passwd(5)
 .SH DIAGNOSTICS
 .SH "SEE ALSO"
 getlogin(3), getgrent(3), passwd(5)
 .SH DIAGNOSTICS
-Null pointer
-(0) returned on EOF or error.
+The routines
+.IR getpwent ,
+.IR getpwuid ,
+and
+.IR getpwnam ,
+return a null pointer (0) on EOF or error.
 .SH BUGS
 All information
 is contained in a static area
 so it must be copied if it is
 to be saved.
 .SH BUGS
 All information
 is contained in a static area
 so it must be copied if it is
 to be saved.
-.br