putpwent(3C)


putpwent -- write password file entry

Synopsis

   #include <pwd.h>
   

int putpwent (const struct passwd *p, FILE *f);

Description

putpwent is the inverse of getpwent(3C). Given a pointer to a passwd structure created by getpwent (or getpwuid or getpwnam), putpwent writes a line on the stream f, which matches the format of /etc/passwd.

Return values

putpwent returns non-zero if an error was detected during its operation; otherwise, it returns zero.

References

getpwent(3C)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004