🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sources.d
Article #4981

Re: vt100clock

#4981
From: Guy Harris
Date: Thu, 11 May 1989 20:17
5 lines
657 bytes
>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.
Technical Details
Message-ID: <1610@auspex.auspex.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!uunet!auspex!guy
References: <7150@bsu-cs.bsu.edu> <3291@orca.WV.TEK.COM>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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