[Gllug] cuserid?

Peter Childs peterachilds at gmail.com
Mon Oct 17 14:10:16 UTC 2005


How do I find out who the current user is as returned by whoami in c
I've been using cuserid but I've just hit a problem that some of the
username are more than 9 characters in length. All the docs seam to
surgest using the environment varable LOGNAME but this does not seam
to be right either.

Any ideas

Peter Childs
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list