Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP-UX Reference > L

logname(3C)

HP-UX 11i Version 3: February 2007
» 

Technical documentation

» Feedback
Content starts here

 » Table of Contents

 » Index

NAME

logname() — return login name of user

SYNOPSIS

#include <unistd.h>

char *logname(void);

DESCRIPTION

logname() returns a pointer to the null-terminated login name; it extracts the $LOGNAME variable from the user's environment.

WARNINGS

logname() returns a pointer to static data that is overwritten by each subsequent call.

This method of determining a login name is subject to forgery.

FILES

/etc/profile

STANDARDS CONFORMANCE

logname(): SVID2, XPG2

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 1983-2007 Hewlett-Packard Development Company, L.P.