Berkeley CSUA MOTD:Entry 26764
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/05/25 [General] UID:1000 Activity:popular
5/25    

2002/12/9-10 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Perl] UID:26764 Activity:moderate
12/9    help, i can't seem to figure out how to get the group info for a given
        user from c.  In perl i'd just do @theuser=getpwnam USERNAME;
        $theuser[3] would be what i'm looking for.  How do i do this in c?
        \_ man getpwent
        \_ getpwnam()