Locale-Sensitive C/C++ String Operation Function
int getlogin_r(char *name, size_t namesize);
Internationalization (I18n) Function Overview
The getlogin_r function is a reentrant version of getlogin . It puts the name associated by the login activity with the controlling terminal of the current process into the character array pointed to by name . The array is namesize characters long and should have space for the name and the terminating null character.
I18n Issues
There is no ANSI wide character version of this function. The return value will need to be converted from multibyte UTF-8 characters to wide characters after the call.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
Locale-Sensitive C/C++ String Operation Functions
|