inet_ntoa.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_ntoa.c
blob: 71411e0b5f145a59838a02149ef26644e6e4199f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <arpa/inet.h>
#include <stdio.h>
char *inet_ntoa(struct in_addr in)
{
	static char buf[16];
	unsigned char *a = (void *)&in;
	snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
	return buf;
}
generated by cgit v1.2.1 (git 2.18.0) at 2025年09月21日 08:38:41 +0000

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