#include "whoami.h" int main(void) { struct passwd *p; if ((p = getpwuid(getuid())) == NULL) { exit(EXIT_FAILURE); } printf("%s\n", p->pw_name); exit(EXIT_SUCCESS); }