Copyright (C) 2000-2012 |
Manpages GETPWSection: Linux Programmer's Manual (3)Updated: 1996-05-27 Index Return to Main Contents NAMEgetpw - Re-construct password line entrySYNOPSIS#include <pwd.h> #include <sys/types.h> int getpw(uid_t uid, char *buf); DESCRIPTIONThe getpw() function re-constructs the password line entry for the given user uid uid in the buffer buf. The returned buffer contains a line of format
The passwd structure is defined in <pwd.h> as follows:
RETURN VALUEThe getpw() function returns 0 on success, or -1 if an error occurs.ERRORS
FILES
CONFORMING TOSYSVr2.BUGSThe getpw() function is dangerous as it may overflow the provided buffer buf. It is obsoleted by getpwuid().SEE ALSOfgetpwent(3), getpwent(3), setpwent(3), endpwent(3), getpwnam(3), getpwuid(3), putpwent(3), passwd(5)
IndexThis document was created by man2html, using the manual pages. Time: 06:54:49 GMT, April 25, 2024 |