libproc_pw3
Lookup ids in /etc/passwd and /etc/group
Usage
#include <proc/ps.h> char *user_from_uid(uid_t uid); char *group_from_gid(gid_t gid);
Overview
Both functions look up the numeric id and return a pointer to the name corresponding to the id. If they cannot find an entry matching id, they return a pointer to a string containing the id with a leading #.
Releases
Unchanged in 2 releases since Debian 1.2 (Rex).