commit | 393f2bd9fbc9cfe1f48ac6aeabfcda204c7e3d4b | [log] [tgz] |
---|---|---|
author | Harald Welte <laforge@gnumonks.org> | Fri Sep 11 17:13:51 2015 +0200 |
committer | Harald Welte <laforge@gnumonks.org> | Fri Sep 11 17:13:51 2015 +0200 |
tree | bc085de35f68f9f02d466712035459fa1391afe7 | |
parent | 3af1db87edfa3c91efa9911d2f786f4b931750d6 [diff] [blame] |
move BCD string encoding/decoding functions to iu_helpers.[ch]
diff --git a/src/iu_helpers.h b/src/iu_helpers.h new file mode 100644 index 0000000..4733bbc --- /dev/null +++ b/src/iu_helpers.h
@@ -0,0 +1,6 @@ +#pragma once + +#include <stdint.h> + +int decode_iu_bcd(char *out, size_t out_len, const uint8_t *in, size_t in_len); +int encode_iu_imsi(uint8_t *out, size_t out_len, const char *in);