-
-/*
- * Get the uid of a person using his/her login name. Return -1 if no
- * such account name exists.
- */
-getid(name)
-char *name;
-{
-
- struct passwd *pwdinfo; /* password info structure */
-
-
- if ((pwdinfo = getpwnam(name)) == 0)
- return(-1);
-
- return(pwdinfo->pw_uid);
-}
-