GETPW(3C) UNIX Programmer's Manual GETPW(3C) NAME getpw - get name from UID SYNOPSIS getpw (uid, buf) int uid; char *buf; HP-UX COMPATIBILITY Level: HP-UX/NUCLEUS Origin: System III DESCRIPTION _G_e_t_p_w searches the password file for the (numerical) _u_i_d, and fills in _b_u_f with the corresponding line; it returns non-zero if _u_i_d could not be found. The line is null- terminated. This routine is included only for compatibility with prior systems and should not be used; see _g_e_t_p_w_e_n_t(3C) for rou- tines to use instead. FILES /etc/passwd SEE ALSO getpwent(3C), passwd(5). DIAGNOSTICS _G_e_t_p_w returns non-zero on error.