From 180322293c245a853612b5f58913a29997e11267 Mon Sep 17 00:00:00 2001 From: "Coren[m]" Date: Mon, 9 Sep 2013 15:32:05 +0200 Subject: network.h: - added ipany_ntoa() network.c: - added ipany_ntoa() - fixed formatting --- toxcore/network.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'toxcore/network.h') diff --git a/toxcore/network.h b/toxcore/network.h index 2a0b5560..15ca68e3 100644 --- a/toxcore/network.h +++ b/toxcore/network.h @@ -99,6 +99,12 @@ typedef struct { }; } IPAny; +/* ipany_ntoa + * converts ip into a string + * uses a static buffer, so mustn't used multiple times in the same output + */ +const char *ipany_ntoa(IPAny *ip); + typedef union { struct { IP4 ip; -- cgit v1.2.3