lr_get_host_name
Returns the name of the host.
char *lr_get_host_name( ); | Alphabetical Listing - C Language Utility Functions |
Return Values
This function returns the name of the host if the operation is successful and NULL if the operation fails. The return value is a pointer to static data and should only be read, not altered.
Parameterization
You cannot use standard parameterization for any arguments in this function.
Example
In the following example, the lr_get_host_name function retrieves the name of the station running the script.
char * my_host;
my_host = lr_get_host_name( );
lr_output_message("%s", my_host);

