Open System Services Library Calls Reference Manual (G06.28+, H06.05+)
OSS Library Calls (i - m) inet_pton(3)
RETURN VALUES
Upon successful completion, this function returns a 1. Otherwise, this function returns:
0 The dst parameter specifies an invalid address string.
-1 The af parameter specifies an invalid address family.
If -1 is returned, errno is also set.
ERRORS
If any of these conditions occurs, the function sets errno to the corresponding value:
[EAFNOSUPPORT]
The value specified for the af parameter is not valid.
RELATED INFORMATION
Functions: freeaddrinfo(3), gai_strerror(3), getaddrinfo(3), getnameinfo(3),
if_freenameindex(3)
, if_indextoname(3), if_nameindex(3), if_nametoindex(3), inet_ntop(3).
STANDARDS CONFORMANCE
This function is an extension to the XPG4 specification.
527187-007 Hewlett-Packard Company 4−25