#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; }