2005-09-13 05:44:08 +04:00
|
|
|
/* $NetBSD: _inet_pton.c,v 1.4 2005/09/13 01:44:09 christos Exp $ */
|
2004-05-21 03:13:02 +04:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Written by Klaus Klein, September 14, 1999.
|
|
|
|
* Public domain.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/cdefs.h>
|
2005-06-12 09:21:25 +04:00
|
|
|
#if defined(LIBC_SCCS) && !defined(lint)
|
2005-09-13 05:44:08 +04:00
|
|
|
__RCSID("$NetBSD: _inet_pton.c,v 1.4 2005/09/13 01:44:09 christos Exp $");
|
2005-06-12 09:21:25 +04:00
|
|
|
#endif /* LIBC_SCCS and not lint */
|
2004-05-21 03:13:02 +04:00
|
|
|
|
2005-09-13 05:44:08 +04:00
|
|
|
#if defined(__indr_reference)
|
|
|
|
__indr_reference(_inet_pton, inet_pton)
|
2004-05-21 03:13:02 +04:00
|
|
|
#else
|
|
|
|
|
|
|
|
#include <sys/types.h>
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <arpa/inet.h>
|
|
|
|
|
2005-09-13 05:44:08 +04:00
|
|
|
int _inet_pton(int, const char *, void *);
|
2004-05-21 03:13:02 +04:00
|
|
|
|
|
|
|
int
|
2005-09-13 05:44:08 +04:00
|
|
|
inet_pton(int af, const char *src, void *dst)
|
2004-05-21 03:13:02 +04:00
|
|
|
{
|
|
|
|
|
|
|
|
return _inet_pton(af, src, dst);
|
|
|
|
}
|
|
|
|
#endif
|