Getting the full name of a user by uid
Getting the full name of a user by uid
- Subject: Getting the full name of a user by uid
- From: Dan Bernstein <email@hidden>
- Date: Fri, 9 Jul 2004 23:27:31 +0300
Is there a way in Cocoa (or Carbon) to get the full name of a user
given the uid, the way NSFullUserName() returns the current user's
name?
If not, is it safe to do what finger does, and assume that the
pw_gecos field in the passwd struct returned from getpwuid() points to
the full name? I don't want to use Directory Services or NetInfo.
Thanks,
-- Dan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.