putspwent(3C)
NAME
putspwent() − write secure password file entry
SYNOPSIS
#include <pwd.h>
int putspwent(const struct s_passwd *p, FILE *f);
DESCRIPTION
putspwent() is the inverse of getspwent() (see getspwent(3C)). Given a pointer to a s_passwd structure, as created by getspwent(), putspwent() writes a line on the stream f, which matches the format of /.secure/etc/passwd.
RETURN VALUE
putspwent() returns non-zero if it detects an error during its operation; otherwise it returns a value of zero.
AUTHOR
putspwent() was developed by HP.
SEE ALSO
getpwent(3C), getspwent(3C), putpwent(3C), spasswd(4).
Hewlett-Packard Company — HP-UX Release 9.0: August 1992