diff options
| author | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-24 17:21:47 +0200 |
|---|---|---|
| committer | Dirk Engling <erdgeist@erdgeist.org> | 2026-10-24 17:21:47 +0200 |
| commit | 60f55f34eeec70842b21accdd7fc0dc5d89493a2 (patch) | |
| tree | 21a50b9d936df6b4348d6d1c95681a4269165804 /ot_hex.h | |
| parent | ea9c9a1766f1ce716c359fc04628855293fcffbd (diff) | |
Add an ip address parser and formatter for all formats opentracker needs
Diffstat (limited to 'ot_hex.h')
| -rw-r--r-- | ot_hex.h | 4 |
1 files changed, 4 insertions, 0 deletions
| @@ -22,4 +22,8 @@ int hex_tohash(ot_hash hash, const char *src); | |||
| 22 | /* Non-zero if c is a hexadecimal digit, in either case. */ | 22 | /* Non-zero if c is a hexadecimal digit, in either case. */ |
| 23 | int hex_isdigit(int c); | 23 | int hex_isdigit(int c); |
| 24 | 24 | ||
| 25 | /* The value of a hexadecimal digit, or -1 if c is not one. Shared with the | ||
| 26 | address scanner so that both agree on what a digit is. */ | ||
| 27 | int hex_value(int c); | ||
| 28 | |||
| 25 | #endif | 29 | #endif |
