GETPW(3) BSD Programmer's Manual GETPW(3) NNAAMMEE ggeettppww - get name from uid SSYYNNOOPPSSIISS ggeettppww(_u_i_d, _c_h_a_r _*_b_u_f); DDEESSCCRRIIPPTTIIOONN TThhee ggeettppww ffuunnccttiioonn iiss mmaaddee oobbssoolleettee bbyy ggeettppwwuuiidd((33)).. IItt iiss aavvaaiillaabbllee ffrroomm tthhee ccoommppaattiibbiilliittyy lliibbrraarryy,, lliibbccoommppaatt.. The ggeettppww() function reads the file _/_e_t_c_/_p_a_s_s_w_d, and if it finds the specified _u_i_d, copies the password entry line into the string pointed to by _b_u_f. the null terminated entry line from the password database, and appends the NUL character. RREETTUURRNN VVAALLUUEESS The ggeettppww() function returns the zero if successful, otherwise a non-zero if the entry does not exist. FFIILLEESS /etc/passwd SSEEEE AALLSSOO getpwent(3), passwd(5) HHIISSTTOORRYY A ggeettppww() function appeared in Version 6 AT&T UNIX. 4.4BSD June 4, 1993 1