V10/lbin/csh/getpwnam.c

Compare this file to the similar file:
Show the results in this format:

static	char *sccsid = "@(#)getpwnam.c 4.1 10/9/80";

#include <pwd.h>

struct passwd *
getpwnam(name)
char *name;
{
	register struct passwd *p;
	struct passwd *getpwent();

	setpwent();
	while( (p = getpwent()) && strcmp(name,p->pw_name) );
	endpwent();
	return(p);
}