inet_addr.c\network\src - musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src/network/inet_addr.c
blob: 11ece3d6f8f14c5a791d63ceeec7fc960b9de2e5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
in_addr_t inet_addr(const char *p)
{
	struct in_addr a;
	if (!__inet_aton(p, &a)) return -1;
	return a.s_addr;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月15日 22:43:06 +0000

AltStyle によって変換されたページ (->オリジナル) /