mirror of
https://github.com/fluencelabs/musl
synced 2025-06-10 13:31:37 +00:00
despite being practically deprecated, these functions are still part
of the standard and thus cannot reside in a file that also contains
namespace pollution. this reverts some of the changes made in commit
e40f48a421
.
11 lines
217 B
C
11 lines
217 B
C
#include <arpa/inet.h>
|
|
#include <stdio.h>
|
|
|
|
char *inet_ntoa(struct in_addr in)
|
|
{
|
|
static char buf[16];
|
|
unsigned char *a = (void *)∈
|
|
snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
|
|
return buf;
|
|
}
|