#include <stdlib.h>
Go to the source code of this file.
|
| int | GetHostName (char *hostname_buf, size_t hostname_buflen) |
| | Loads the current host name. More...
|
| |
| int | GetUserName (char *username_buf, size_t username_buflen) |
| | Loads the current user name. More...
|
| |
◆ GetHostName()
| int GetHostName |
( |
char * |
hostname_buf, |
|
|
size_t |
hostname_buflen |
|
) |
| |
Loads the current host name.
- Parameters
-
| hostname_buf | The buffer to write the host name to. |
| hostname_buflen | The size of the buffer. |
- Returns
- Whether fetching the host name succeeded.
◆ GetUserName()
| int GetUserName |
( |
char * |
username_buf, |
|
|
size_t |
username_buflen |
|
) |
| |
Loads the current user name.
- Parameters
-
| username_buf | The buffer to write the user name to. |
| username_buflen | The size of the buffer. |
- Returns
- Whether fetching the user name succeeded.