From 15d306084a1841d222472de6e9a54c232504f0e3 Mon Sep 17 00:00:00 2001 From: cjc Date: Thu, 29 Nov 2001 00:56:45 +0000 Subject: After the long explanaition of how the inet_* functions interpret Internet addresses, point out that inet_pton(3) only understands dotted quads with decimal values. MFC after: 2 days --- lib/libc/net/inet.3 | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/libc') diff --git a/lib/libc/net/inet.3 b/lib/libc/net/inet.3 index 2461694..8816ae4 100644 --- a/lib/libc/net/inet.3 +++ b/lib/libc/net/inet.3 @@ -203,6 +203,14 @@ hexadecimal; otherwise, a leading 0 implies octal; otherwise, the number is interpreted as decimal). .Pp The +.Fn inet_pton +function only understands Internet addresses written as dotted quads. +Each +.Dq part +may only contain numeric characters and is always interpreted as a +decimal value. +.Pp +The .Fn inet_aton and .Fn inet_ntoa -- cgit v1.1