:man| Alphabetical   Categories   About us 
 
GETPW (3) | C library functions | Unix Manual Pages | :man

NAME

getpw - get name from uid

CONTENTS

Library
Synopsis
Description
Return Values
Files
See Also
History
Bugs

LIBRARY


.Lb libcompat

SYNOPSIS


.In sys/types.h int getpw "uid_t uid" "char *buf"

DESCRIPTION


.Bf -symbolic The getpw function is made obsolete by getpwuid(3).
.Ef

The getpw function reads the file /etc/passwd, and if it finds the specified uid, copies the password entry line into the string pointed to by buf. the null terminated entry line from the password database, and appends the NUL character.

RETURN VALUES

The getpw function returns the zero if successful, otherwise a non-zero if the entry does not exist.

FILES

/etc/passwd

SEE ALSO

getpwent(3), passwd(5)

HISTORY

BUGS

getpwent(3)

 
Created by Blin Media, 2008-2013