DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

putpwent(S)


putpwent -- write password file entry

Syntax

cc . . . -lc

#include <pwd.h>

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

Description

The putpwent routine is the inverse of the getpwent(S) routine. Given a pointer to a passwd structure created by getpwent (or two other routines that appear on the same man page - getpwuid(S) or getpwnam(S)), putpwent writes a line which matches the format of /etc/passwd onto the stream f.

Return value

Upon successful completion, the putpwent routine returns a value of zero. If an error was detected during its operation, it will return a non-zero value.

See also

getpwent(S), getpwuid(S), getpwnam(S)

Standards conformance

putpwent is not part of any currently supported standard; it was developed by UNIX System Laboratories, Inc. and is maintained by The SCO Group.
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003