php-src/win32/inet.c
2013-02-02 16:38:09 +01:00

12 lines
179 B
C

#include "inet.h"
int inet_aton(const char *cp, struct in_addr *inp) {
inp->s_addr = inet_addr(cp);
if (inp->s_addr == INADDR_NONE) {
return 0;
}
return 1;
}