summaryrefslogtreecommitdiff
path: root/win32/inet.c
blob: 686cf1265c524142bb1c1172e3e14703e5ed661a (plain)
1
2
3
4
5
6
7
8
9
10
11
#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;
}