Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putpwent(3C) — HP-UX 5.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

getpwent(3C)

PUTPWENT(3C)

NAME

putpwent − write password file entry

SYNOPSIS

#include <pwd.h>
#include <stdio.h>

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

HP-UX COMPATIBILITY

Level: HP-UX/NUCLEUS

Origin: System V

DESCRIPTION

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

DIAGNOSTICS

Putpwent returns non-zero if an error was detected during its operation, otherwise zero. 

SEE ALSO

getpwent(3C). 

WARNING

The above routine uses <stdio.h>, which causes it to increase the size of programs, not otherwise using standard I/O, more than might be expected. 

Hewlett-Packard  —  last mod. May 11, 2021

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026