Returns information about a local user.
#include <pwd.h> struct passwd *getpwuid ( uid_t uid );
If successful, returns a pointer to a passwd structure. Otherwise, returns a NULL pointer if the ID cannot be found or an error occurs. If an error occurs, errno is also set.
The pointer returned by the getpwuid points to data, which might be overwritten by another call to getpwuid. In a multi-threaded, multi-processor environment, use getpwuid_r.