3 * Author: Terrence W. Holm Sept. 1987
16 char *cuserid(user_name
)
19 PRIVATE
char userid
[L_cuserid
];
20 struct passwd
*pw_entry
;
22 if (user_name
== (char *)NULL
) user_name
= userid
;
24 pw_entry
= getpwuid(geteuid());
26 if (pw_entry
== (struct passwd
*)NULL
) {
30 strcpy(user_name
, pw_entry
->pw_name
);