summaryrefslogtreecommitdiff
path: root/src/ip_tools.c
diff options
context:
space:
mode:
authorspv420 <unomilliono@gmail.com>2022-04-23 18:22:31 -0400
committerspv420 <unomilliono@gmail.com>2022-04-23 18:22:31 -0400
commit245a3831d7266913b0281bfa19058b59ac80818b (patch)
treed20043b79a8df535a7df9b1d19c249e6ebd2d5a1 /src/ip_tools.c
parent8526f9689b7bbeb09a14fbd159ef6d1871909df4 (diff)
big b0i
Diffstat (limited to 'src/ip_tools.c')
-rw-r--r--src/ip_tools.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/src/ip_tools.c b/src/ip_tools.c
deleted file mode 100644
index 6e36b64..0000000
--- a/src/ip_tools.c
+++ /dev/null
@@ -1,24 +0,0 @@
-/*
- * ip_tools
- */
-
-#include <stdint.h>
-#include <stdlib.h>
-#include <stdio.h>
-
-#include "ip_tools.h"
-
-char* uint32_t_to_ip(uint32_t val) {
- uint8_t byte1 = (val >> 0) & 0xff;
- uint8_t byte2 = (val >> 8) & 0xff;
- uint8_t byte3 = (val >> 16) & 0xff;
- uint8_t byte4 = (val >> 24) & 0xff;
- char* ret = NULL;
-
- asprintf(&ret, "%u.%u.%u.%u",
- byte1,
- byte2,
- byte3,
- byte4);
- return ret;
-} \ No newline at end of file