Sync usage with man page.
[netbsd-mini2440.git] / lib / libc / inet / _inet_pton.c
blobadc68853ac9006fd5420d9c504212170435f0cce
1 /* $NetBSD: _inet_pton.c,v 1.3 2005/07/30 15:21:20 christos Exp $ */
3 /*
4 * Written by Klaus Klein, September 14, 1999.
5 * Public domain.
6 */
8 #include <sys/cdefs.h>
9 #if defined(LIBC_SCCS) && !defined(lint)
10 __RCSID("$NetBSD: _inet_pton.c,v 1.3 2005/07/30 15:21:20 christos Exp $");
11 #endif /* LIBC_SCCS and not lint */
13 #if defined(__indr_reference)
14 __indr_reference(_inet_pton, inet_pton)
15 #else
17 #include <sys/types.h>
18 #include <netinet/in.h>
19 #include <arpa/inet.h>
21 int _inet_pton(int, const char *, void *);
23 int
24 inet_pton(int af, const char *src, void *dst)
27 return _inet_pton(af, src, dst);
29 #endif