-
Mentor
username => uid and vice versa (C)
???
I know there is a call for it, just don't recall which.
Thanks.
-
Member
Re:username => uid and vice versa (C)
Take a look at getpwuid and getpwnam. They both return the same info in the form of a pointer to "struct passwd" (as per pwd.h).
-
Mentor
Re:username => uid and vice versa (C)
[quote author=pam link=board=9;threadid=5160;start=0#50996 date=1033386392]
Take a look at getpwuid and getpwnam. They both return the same info in the form of a pointer to "struct passwd" (as per pwd.h).
[/quote]
score! thanks this is what i was looking for.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks