Query: cuserid
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
cuserid(3) Library Functions Manual cuserid(3)NAMEcuserid - Gets the alphanumeric username associated with the current processLIBRARYStandard C Library (libc.so, libc.a)SYNOPSIS#include <stdio.h> char *cuserid( char *s);STANDARDSInterfaces documented on this reference page conform to industry standards as follows: cuserid(): XPG4, XPG4-UNIX Refer to the standards(5) reference page for more information about industry standards and associated tags.PARAMETERSPoints to the character array into which the cuserid() function copies the string representing the username. This array must contain at least L_cuserid bytes. L_cuserid is a constant defined in the stdio.h header file, and has a value greater than 0 (zero). If you specify a null pointer for s, the character string is stored into an internal thread-specific buffer, the address of which is returned.DESCRIPTIONThe cuserid() function generates a character string representing the real or effective username of the owner of the current process.NOTESIf the s parameter is a null pointer, the character string is stored into an internal thread-specific buffer, the address of which is returned. Subsequent calls to the cuserid() function from the same thread overwrite the contents of the internal buffer. The cuserid() function is scheduled to be withdrawn from a future version of the X/Open CAE Specification.RETURN VALUESIf the s parameter is not a null pointer, the cuserid() function returns the character string in the array pointed to by s. If the user- name cannot be found, an empty string is returned. If the s parameter is a null pointer, the character string is stored into an internal thread-specific buffer, the address of which is returned. If the username cannot be found, a null pointer is returned.RELATED INFORMATIONFunctions: getlogin(2), getpwent(3) Standards: standards(5) delim off cuserid(3)
Related Man Pages |
---|
getlogin(3) - linux |
cuserid(3) - redhat |
cuserid(3) - debian |
getlogin(3) - debian |
cuserid(3) - osf1 |
Similar Topics in the Unix Linux Community |
---|
sending a null character to a terminal |
Regarding cuserid() function in 'C' |
Grep username and get all the lines with thread numbers |