Share this page

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

Copy code

    char * my_host;
    my_host = lr_get_host_name( );
    lr_output_message("%s", my_host);

Tips to improve your search results... VuGen Function Reference Version 26.1-26.3 Function Reference 26.1-26.3 All View Local Help Center View Online Help Center Version: