aboutsummaryrefslogtreecommitdiff
path: root/benchtests/inet_ntop_ipv4-source.c
blob: c595c47b84322da3c667cf16b0650beb3b6b9daf (plain)
1
2
3
4
5
6
7
8
9
10
#include <arpa/inet.h>
#include <stdint.h>

static void
inet_ntop_ipv4 (uint32_t addr)
{
  struct in_addr saddr = { .s_addr = addr };
  char dst[INET_ADDRSTRLEN];
  inet_ntop (AF_INET, &saddr, dst, sizeof dst);
}