osf1 man page for inet_ntop

Query: inet_ntop

OS: osf1

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

inet_ntop(3)						     Library Functions Manual						      inet_ntop(3)

NAME
inet_ntop - Converts a numeric address to a text string
LIBRARY
Standard C Library (libc.so, libc.a)
SYNOPSIS
#include <arpa/inet.h> const char *inet_ntop ( int af, const void *src, char *dst, size_t size) ;
PARAMETERS
Specifies the address family. Valid values are AF_INET for an Internet Protocol Version 4 (IPv4) address and AF_INET6 for an IPv6 address. Points to a buffer that contains the numeric Internet address. Points to a buffer that is to contain the text string. Specifies the size of the buffer pointed to by the dst parameter. For Internet Protocol Version 4 (IPv4) addresses, the minimum buffer size is 16 octets. For IPv6 addresses, the minimum buffer size is 46 octets. The <netinet/in.h file defines the INET_ADDRSTRLEN and INET6_ADDRSTRLEN constants, respectively, for for these values.
DESCRIPTION
The use of this routine is deprecated. Use the getnameinfo(3) routine instead. The inet_ntop() function converts a binary Internet address value to a formatted text string.
RETURN VALUES
Upon successful conversion, the inet_ntop() function returns a pointer to the buffer containing the text string. If the function fails, it returns a NULL pointer.
ERRORS
If the inet_ntop() routine call fails, errno is set to one of the following values: The address family specified in af parameter is invalid. The size of the buffer is inadequate.
RELATED INFORMATION
Functions: getnamerinfo(3), inet_pton(3). delim off inet_ntop(3)
Related Man Pages
inet_ntop(3) - redhat
inet_ntop(3) - debian
inet_ntop(3) - osf1
inet_ntop(3) - minix
inet_ntop(3) - x11r4
Similar Topics in the Unix Linux Community
MyIpTrack 0.1 (Default branch)
MyIpTrack 0.2 (Default branch)
Gip Internet Protocol Calculator 1.7.0 (Default branch)
Why people are not concerned about security on Internet Social tools?