Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putpwent(3C) — GL2 W2.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PUTPWENT(3C)  —  Silicon Graphics

NAME

putpwent − write password file entry

SYNOPSIS

#include <pwd.h>

int putpwent (p, f)
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), putpwuid 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. 

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. 

Version 2.4  —  May 08, 1986

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