Results 1 to 3 of 3

Thread: username => uid and vice versa (C)

  1. #1

    username => uid and vice versa (C)

    ???
    I know there is a call for it, just don't recall which.

    Thanks.

  2. #2

    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).

  3. #3

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •