mirror of
https://github.com/wiiu-env/wut.git
synced 2024-12-05 03:04:16 +01:00
12 lines
175 B
C
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;
|
|
}
|