The geteuid function returns a uid_t that contains the user's effective user id.