01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

GETPW ( 3C ) GETPW ( 3C )<br />

NAME<br />

getpw - get name from UID<br />

SYNOPSIS<br />

int getpw (uid, buf)<br />

int uid;<br />

char •buf;<br />

DESCRIPTION<br />

Getpw searches the password file for a user ID number that equals<br />

uid, copies the line of the password file in which uid was found<br />

into the array pointed to by buf, and returns 0. Getpw returns<br />

non-zero if uid cannot be found.<br />

This routine is included only for compatibility with prior systems<br />

and should not be used; see getpwent(3C) for routines to use<br />

instead.<br />

FILES<br />

jetcfpasswd<br />

SEE ALSO<br />

getpwent(3C), passwd( 4).<br />

DIAGNOSTICS<br />

Getpw returns non-zero on error.<br />

WARNING<br />

The above routine uses < stdio.h >, which causes it to increase<br />

the size of programs, not otherwise using standard 1/0, more than<br />

might be expected.<br />

- 1-

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!