* Copyright (c) 1988 Regents of the University of California.
* %sccs.include.redist.c%
"@(#) Copyright (c) 1988 Regents of the University of California.\n\
static char sccsid
[] = "@(#)whoami.c 5.4 (Berkeley) %G%";
struct passwd
*p
, *getpwuid();
if (!(p
= getpwuid(uid
))) {
printf("whoami: no login associated with uid %u.\n", uid
);
printf("%s\n", p
->pw_name
);