summaryrefslogtreecommitdiff
path: root/src/net/ipv4.c
blob: 38ae7da78538c66a5c923fe0ecc3071837ed599a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#include "ipv4.h"

#include "stdio.h"

char *network_ipv4_address_to_string( network_ipv4_address_t addr, char *buf, size_t buflen )
{
	snprintf( buf, buflen, "%d.%d.%d.%d",
		addr.byte[0], addr.byte[1],
		addr.byte[2], addr.byte[3] );

	return buf;
}