synccall: add separate exit_sem to fix thread release logic bug
[musl.git] / src / network / inet_ntoa.c
blob71411e0b5f145a59838a02149ef26644e6e4199f
1 #include <arpa/inet.h>
2 #include <stdio.h>
4 char *inet_ntoa(struct in_addr in)
6 static char buf[16];
7 unsigned char *a = (void *)&in;
8 snprintf(buf, sizeof buf, "%d.%d.%d.%d", a[0], a[1], a[2], a[3]);
9 return buf;