Xref: utzoo comp.lang.c:22503 comp.unix.questions:16786 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!mcsun!sunic!draken!larss From: larss@nada.kth.se (Lars Schylberg) Newsgroups: comp.lang.c,comp.unix.questions Subject: Real name of user Keywords: username Message-ID: <1876@draken.nada.kth.se> Date: 5 Oct 89 18:51:29 GMT Organization: Royal Institute Of Technology, Stockholm, Sweden Lines: 17 I'm looking for a c-routine under UNIX environment that could give the real name of the user just in the same manner as getenv("USER") gives the username. I know that the real name is available in the /etc/passwd file. But I guess that there have to be a routine to extract it. I would prefer email answers since I'm usually not on these groups. Many thanks in advance. Lars. -- Lars Schylberg Email: larss@fmi.kth.se (Internet) Department of Photogrammetry larss@sekth.bitnet (Bitnet) Royal Institute of Technology Tel. +46 8 790 86 33 (office) S-100 44 STOCKHOLM, SWEDEN Fax. +46 8 10 91 99