summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHarald Welte2010-07-30 10:37:29 +0200
committerHarald Welte2010-07-30 10:37:29 +0200
commit3eba991b3d005c3ae4aafe2235558a60e06b49f4 (patch)
tree1b47eb996754a4da30728d358085f1c73b35f427 /include
parentcore/msgb: Use the new osmo_panic call to handle errors (diff)
downloadlibosmocore-3eba991b3d005c3ae4aafe2235558a60e06b49f4.tar.gz
libosmocore-3eba991b3d005c3ae4aafe2235558a60e06b49f4.tar.xz
libosmocore-3eba991b3d005c3ae4aafe2235558a60e06b49f4.zip
Import 'hexparse' function from OpenBSC
Diffstat (limited to 'include')
-rw-r--r--include/osmocore/utils.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/osmocore/utils.h b/include/osmocore/utils.h
index 51c6f03..c5b95bd 100644
--- a/include/osmocore/utils.h
+++ b/include/osmocore/utils.h
@@ -17,4 +17,6 @@ char bcd2char(uint8_t bcd);
/* only works for numbers in ascci */
uint8_t char2bcd(char c);
+int hexparse(const char *str, uint8_t *b, int max_len);
+
#endif