unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (4.2BSD)
Page:
Section:
Apropos / Subsearch:
optional field

GETPW(3C)                                                            GETPW(3C)



NAME
       getpw - get name from uid

SYNOPSIS
       getpw(uid, buf)
       char *buf;

DESCRIPTION
       Getpw is obsoleted by getpwuid(3).

       Getpw  searches the password file for the (numerical) uid, and fills in
       buf with the corresponding line; it returns non-zero if uid  could  not
       be found.  The line is null-terminated.

FILES
       /etc/passwd

SEE ALSO
       getpwent(3), passwd(5)

DIAGNOSTICS
       Non-zero return on error.



                                19 January 1983                      GETPW(3C)