DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

putpwent(S)


putpwent -- write password file entry

Synopsis

   #include <pwd.h>
   

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

Description

putpwent is the inverse of getpwent(S). 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(S)
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 - 01 June 2005