unixdev.net


Switch to SpeakEasy.net DSL

The Modular Manual Browser

Home Page
Manual: (SunOS-4.1.3)
Page:
Section:
Apropos / Subsearch:
optional field

GETPW(3)                   Library Functions Manual                   GETPW(3)



NAME
       getpw - get name from uid

SYNOPSIS
       getpw(uid, buf)
       char *buf;

DESCRIPTION
       getpw() is obsoleted by getpwent(3V).

       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(3V), passwd(5)

DIAGNOSTICS
       Non-zero return on error.



                                6 October 1987                        GETPW(3)