Find the answer to your Linux question:
Results 1 to 2 of 2
Hi everyone: Is there any c++ function that returns the current user ID in linux? Thank you HW...
  1. #1
    Just Joined!
    Join Date
    Apr 2007
    Posts
    6

    getting the user ID

    Hi everyone:

    Is there any c++ function that returns the current user ID in linux?

    Thank you

    HW

  2. #2
    Linux Enthusiast likwid's Avatar
    Join Date
    Dec 2006
    Location
    MA
    Posts
    649
    getuid(), and get geteuid()

Posting Permissions

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