static char *sccsid = "@(#)whoami.c 4.1 (Berkeley) 10/01/80"; #include /* * whoami */ struct passwd *getpwuid(); main() { register struct passwd *pp; pp = getpwuid(getuid()); if (pp == 0) { printf("Intruder alert.\n"); exit(1); } printf("%s\n", pp->pw_name); exit(0); }