summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfadhil riyanto <me@fadev.org>2024-10-09 11:14:05 +0700
committerfadhil riyanto <me@fadev.org>2024-10-09 11:14:05 +0700
commitd87a475995f8cd6012ea5d3f9603224bdea686f6 (patch)
tree274ba5393f0235cc87249d0fe24aa95c15da8eae
parent32b8db440d515344b630d59dc436e1a00fb8a19d (diff)
test hex printipv6
Signed-off-by: fadhil riyanto <me@fadev.org>
-rw-r--r--test/ipv6.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/ipv6.c b/test/ipv6.c
new file mode 100644
index 0000000..93c8f86
--- /dev/null
+++ b/test/ipv6.c
@@ -0,0 +1,10 @@
+#include <stdint.h>
+#include <sys/types.h>
+#include <stdio.h>
+
+int main()
+{
+ u_int8_t a = 27;
+
+ printf("%02X\n", a);
+} \ No newline at end of file