diff options
author | Michael Pavone <pavone@retrodev.com> | 2019-03-11 00:04:48 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2019-03-11 00:04:48 -0700 |
commit | e2281e5a19682d44435b1015c4ce4a64b7e3b586 (patch) | |
tree | f2292fce0eb4690470f73c583047719c691be96f /util.h | |
parent | 3d12dcb00997921347170b7f87b54f787a80c678 (diff) |
Minor cleanup
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -32,6 +32,8 @@ long file_size(FILE * f); char * strip_ws(char * text); //Inserts a null after the first word, returns a pointer to the second word char * split_keyval(char * text); +//Checks if haystack starts with prefix +uint8_t startswith(const char *haystack, const char *prefix); //Takes a binary byte buffer and produces a lowercase hex string void bin_to_hex(uint8_t *output, uint8_t *input, uint64_t size); //Takes an (optionally) null-terminated UTF16-BE string and converts a maximum of max_size code-units to UTF-8 |