summaryrefslogtreecommitdiff
path: root/lib/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/string.h')
-rw-r--r--lib/string.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/string.h b/lib/string.h
index 2829943d..161b7651 100644
--- a/lib/string.h
+++ b/lib/string.h
@@ -33,6 +33,9 @@ u64 bstrtoul10(const char *str, char **end);
u64 bstrtoul16(const char *str, char **end);
byte bstrtobyte16(const char *str);
+int bstrhextobin(const char *s, byte *b);
+int bstrbintohex(const byte *b, size_t len, char *buf, size_t size, char delim);
+
int patmatch(const byte *pat, const byte *str);
static inline char *xbasename(const char *str)