FreeBSD Manual Pages
IPADDR_STR(3) libdill Library Functions IPADDR_STR(3) NAME ipaddr_str - convert address to a human-readable string SYNOPSIS #include <libdill.h> const char* ipaddr_str( const struct ipaddr* addr, char* buf); DESCRIPTION Formats address as a human-readable string. addr: IP address object. buf: Buffer to store the result in. It must be at least IPAD- DR_MAXSTRLEN bytes long. This function is not available if libdill is compiled with --dis- able-sockets option. RETURN VALUE The function returns ipstr argument, i.e. pointer to the formatted string. ERRORS None. EXAMPLE char buf[IPADDR_MAXSTRLEN]; ipaddr_str(&addr, buf); SEE ALSO ipaddr_equal(3) ipaddr_family(3) ipaddr_len(3) ipaddr_local(3) ipad- dr_port(3) ipaddr_remote(3) ipaddr_remotes(3) ipaddr_setport(3) ipad- dr_sockaddr(3) libdill IPADDR_STR(3)
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | ERRORS | EXAMPLE | SEE ALSO
Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=ipaddr_str&sektion=3&manpath=FreeBSD+Ports+15.0>
