Returns the effective user ID.
#include <pwd.h> uid_t geteuid ( void );
If successful, returns the local directory entry ID. If unsuccessful, returns 0.
The geteuid function returns the local entry ID for the server connection. This directory ID is specific to the local directory database. This ID can be passed to the getpwuid function to obtain more information.
On NetWare, the geteuid function has the same functionality as the getuid function.