Teach uc_hex_decode to skip spaces

This commit is contained in:
Nils O. Selåsdal
2013-12-06 23:10:32 +01:00
parent 42612803a1
commit 784dc1cecb
3 changed files with 64 additions and 5 deletions
+2 -2
View File
@@ -20,8 +20,8 @@ extern "C" {
*/
char* uc_hex_encode(const uint8_t *in, size_t len, char *out);
/** Decode hex. Will stop at the first non-hex digit
* (anything not 0-9,a-f or A-F)
/** Decode hex. Will stop at the first non-convertible hex-digit
* spaces(' ','\t,'\r','\n') in input are skipped
* Subtract the return value from the passed in @out to find
* the length of the converted data
*