summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorderaadt <>2000-08-13 07:23:48 +0000
committerderaadt <>2000-08-13 07:23:48 +0000
commit0b8661f0548bff2257dd1d248c5694aa4dd4ffcb (patch)
tree1bdc6eef5f7e259f05c42ee1436241ef0a25ee8e /src
parent41f296aef0f810aae2d1f6380e6aee9f3cb1099d (diff)
downloadopenbsd-0b8661f0548bff2257dd1d248c5694aa4dd4ffcb.tar.gz
openbsd-0b8661f0548bff2257dd1d248c5694aa4dd4ffcb.tar.bz2
openbsd-0b8661f0548bff2257dd1d248c5694aa4dd4ffcb.zip
strings are NUL-terminated, not NULL-terminated
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/net/getaddrinfo.38
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libc/net/getaddrinfo.3 b/src/lib/libc/net/getaddrinfo.3
index 4f495457a3..747f62b33b 100644
--- a/src/lib/libc/net/getaddrinfo.3
+++ b/src/lib/libc/net/getaddrinfo.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: getaddrinfo.3,v 1.11 2000/08/09 23:12:04 itojun Exp $ 1.\" $OpenBSD: getaddrinfo.3,v 1.12 2000/08/13 07:23:48 deraadt Exp $
2.\" $KAME: getaddrinfo.3,v 1.22 2000/08/09 21:16:17 itojun Exp $ 2.\" $KAME: getaddrinfo.3,v 1.22 2000/08/09 21:16:17 itojun Exp $
3.\" 3.\"
4.\" Copyright (c) 1983, 1987, 1991, 1993 4.\" Copyright (c) 1983, 1987, 1991, 1993
@@ -88,7 +88,7 @@ The
88.Fa nodename 88.Fa nodename
89and 89and
90.Fa servname 90.Fa servname
91arguments are pointers to null-terminated strings or 91arguments are pointers to NUL-terminated strings or
92.Dv NULL . 92.Dv NULL .
93One or both of these two arguments must be a non-null pointer. 93One or both of these two arguments must be a non-null pointer.
94In the normal client scenario, both the 94In the normal client scenario, both the
@@ -102,7 +102,7 @@ is specified.
102A non-null 102A non-null
103.Fa nodename 103.Fa nodename
104string can be either a node name or a numeric host address string 104string can be either a node name or a numeric host address string
105(i.e., a dotted-decimal IPv4 address or an IPv6 hex address) 105(i.e., a dotted-decimal IPv4 address or an IPv6 hex address).
106A non-null 106A non-null
107.Fa servname 107.Fa servname
108string can be either a service name or a decimal port number. 108string can be either a service name or a decimal port number.
@@ -232,7 +232,7 @@ structure, then upon successful return the
232.Fa ai_canonname 232.Fa ai_canonname
233member of the first 233member of the first
234.Li addrinfo 234.Li addrinfo
235structure in the linked list will point to a null-terminated string 235structure in the linked list will point to a NUL-terminated string
236containing the canonical name of the specified 236containing the canonical name of the specified
237.Fa nodename . 237.Fa nodename .
238.Pp 238.Pp