How do I get the Real Name?

How do I get the Real Name?

Post by Hauke He » Sat, 12 Dec 1992 21:16:43



Hi,

this question sure is a peanut for most of you, but
I didn`t found a proper solution on my own:

I want to get the real name of the current user. I can
get the login-name by issuing cuserid(NULL), but this
name is often crippled by certain user-namingconventions.

If I "finger" the user, I get the real name, but
fingering the user everytime I want to know his
real name slows down my application too much. I think
there must be a faster and more convenient way
to get it.

Is there?

Hauke

 
 
 

How do I get the Real Name?

Post by Gerald Feldm » Sat, 12 Dec 1992 23:01:58


|> Hi,
|>
|> this question sure is a peanut for most of you, but
|> I didn`t found a proper solution on my own:
|>
|> I want to get the real name of the current user. I can
|> get the login-name by issuing cuserid(NULL), but this
|> name is often crippled by certain user-namingconventions.
|>
|> If I "finger" the user, I get the real name, but
|> fingering the user everytime I want to know his
|> real name slows down my application too much. I think
|> there must be a faster and more convenient way
|> to get it.
|>
|> Is there?
|>
|> Hauke
|>

--
The getpwent series of library functions will do what you want for a
local user.
+-------------------------------------------------------------+
Jerry Feldman              AOSG
Mailstop: GSF1-1/K13       DTN:264-5863
Digital Equipment Corp.    EXT:(603)884-5863

Hudson, NH 03051           enet: alpha::gaf

+-------------------------------------------------------------+