rc_own_hostname - Man Page

Get the hostname of this machine.

Synopsis

#include <radcli/>

int rc_own_hostname(
    char    *hostname,
    int      len
);

Description

Parameters

hostname

will hold the name of the host.

len

the size of hostname.

Return Value

-1 on failure, 0 on success.

See Also

rc_get_srcaddr(3), rc_getport(3), rc_openlog(3), rc_setdebug(3)

Referenced By

radcli.h(3), rc_getport(3), rc_get_srcaddr(3), rc_openlog(3), rc_setdebug(3).

2026-08-19 radcli Radius client library