xsecurelock  1.7.0
XSecureLock is an X11 screen lock utility.
Functions
env_info.h File Reference
#include <stdlib.h>

Go to the source code of this file.

Functions

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...
 

Function Documentation

◆ GetHostName()

int GetHostName ( char *  hostname_buf,
size_t  hostname_buflen 
)

Loads the current host name.

Parameters
hostname_bufThe buffer to write the host name to.
hostname_buflenThe 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_bufThe buffer to write the user name to.
username_buflenThe size of the buffer.
Returns
Whether fetching the user name succeeded.