GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
IPADDR_STR(3) libdill Library Functions IPADDR_STR(3)

ipaddr_str - convert address to a human-readable string


#include <libdill.h>
const char* ipaddr_str(
    const struct ipaddr* addr,
    char* buf);

    

Formats address as a human-readable string.

addr: IP address object.

buf: Buffer to store the result in. It must be at least IPADDR_MAXSTRLEN bytes long.

This function is not available if libdill is compiled with --disable-sockets option.

The function returns ipstr argument, i.e. pointer to the formatted string.

None.


char buf[IPADDR_MAXSTRLEN];
ipaddr_str(&addr, buf);

    

ipaddr_equal(3) ipaddr_family(3) ipaddr_len(3) ipaddr_local(3) ipaddr_port(3) ipaddr_remote(3) ipaddr_remotes(3) ipaddr_setport(3) ipaddr_sockaddr(3)
libdill

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.