frontlib/logging.c
changeset 7155 273ad375d64e
child 7158 a0573014ff4f
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/frontlib/logging.c	Thu May 31 00:35:06 2012 +0200
@@ -0,0 +1,7 @@
+#include "logging.h"
+
+char* flib_format_ip(uint32_t numip) {
+	static char ip[16];
+	snprintf(ip, 16, "%u.%u.%u.%u", numip>>24, (numip>>16)&0xff, (numip>>8)&0xff, numip&0xff);
+	return ip;
+}