BRL-CAD
|
Go to the source code of this file.
Enumerations | |
enum | bu_name_type { BU_USER_ACCT , BU_USER_REAL , BU_USER_AUTO } |
Functions | |
char * | bu_user_name (enum bu_user_type type, char *name, size_t size) |
enum bu_name_type |
char* bu_user_name | ( | enum bu_user_type | type, |
char * | name, | ||
size_t | size | ||
) |
Routine for obtaining user names
Returns a given user's account name or real full name if available. May return "unknown" if the name is not available. If 'name' is empty, then the current user's name will be returned. If 'name' is not empty, then it is used as a case-insensitive lookup string.
If 'name' is NULL or size is 0, then dynamic memory will be allocated with bu_malloc() and returned.