Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!auspex!guy From: guy@auspex.auspex.com (Guy Harris) Newsgroups: comp.sources.d Subject: Re: vt100clock Keywords: cuserid()?, BSD, SysV Message-ID: <1610@auspex.auspex.com> Date: 11 May 89 20:17:54 GMT References: <7150@bsu-cs.bsu.edu> <3291@orca.WV.TEK.COM> Reply-To: guy@auspex.auspex.com (Guy Harris) Distribution: na Organization: Auspex Systems, Santa Clara Lines: 5 >Something could be easily make with getpwuid(getuid()) to return the >desired results. Call "getlogin()" first, and if that fails use "getpwuid()" - that's what "cuserid()" does.