From 60f55f34eeec70842b21accdd7fc0dc5d89493a2 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 24 Oct 2026 17:21:47 +0200 Subject: Add an ip address parser and formatter for all formats opentracker needs --- ot_hex.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ot_hex.h') diff --git a/ot_hex.h b/ot_hex.h index cb2e86f..3b45b61 100644 --- a/ot_hex.h +++ b/ot_hex.h @@ -22,4 +22,8 @@ int hex_tohash(ot_hash hash, const char *src); /* Non-zero if c is a hexadecimal digit, in either case. */ int hex_isdigit(int c); +/* The value of a hexadecimal digit, or -1 if c is not one. Shared with the + address scanner so that both agree on what a digit is. */ +int hex_value(int c); + #endif -- cgit v1.3