*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> getpw (3c)              
Title
Content
Arch
Section
 

Contents


GETPW(3C)							     GETPW(3C)


NAME    [Toc]    [Back]

     getpw - get name from UID

SYNOPSIS    [Toc]    [Back]

     #include <stdlib.h>

     int getpw(uid_t uid, char *buf);

DESCRIPTION    [Toc]    [Back]

     getpw searches the	password file for a user id number that	equals uid,
     copies the	line of	the password file in which uid was found into the
     array pointed to by buf, and returns 0.  getpw returns non-zero if	uid
     cannot be found.

     This routine is included only for compatibility with prior	systems	and
     should not	be used; see getpwent(3C) for routines to use instead.

FILES    [Toc]    [Back]

     /etc/passwd

SEE ALSO    [Toc]    [Back]

      
      
     getpwent(3C), passwd(4).

DIAGNOSTICS    [Toc]    [Back]

     getpw returns non-zero on error.

WARNING    [Toc]    [Back]

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


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service