Let people in on the magic of INET[6]_ADDRSTRLEN which comes quite handy in

combination with inet_ntop().

Reviewed by:	trhodes "works for me"
This commit is contained in:
Max Laier 2007-03-21 05:46:18 +00:00
parent faf5485263
commit 02023242ea

View File

@ -28,7 +28,7 @@
.\" From: @(#)inet.3 8.1 (Berkeley) 6/4/93
.\" $FreeBSD$
.\"
.Dd February 28, 2007
.Dd March 21, 2007
.Dt INET 3
.Os
.Sh NAME
@ -126,6 +126,11 @@ The
.Fa size
argument specifies the size, in bytes, of the buffer
.Fa *dst .
.Dv INET_ADDRSTRLEN
and
.Dv INET6_ADDRSTRLEN
define the maximum size required to convert an address of the respective
type.
It returns NULL if a system error occurs (in which case,
.Va errno
will have been set), or it returns a pointer to the destination string.