wut/libraries/wutsocket/inet_addr.c
2021-03-07 13:09:12 +01:00

12 lines
175 B
C

#include "wut_socket.h"
in_addr_t
inet_addr(const char *cp)
{
struct in_addr addr = {
.s_addr = INADDR_NONE,
};
inet_aton(cp, &addr);
return addr.s_addr;
}