[PATCH] Improve hex parser
Max.Suraev at fairwaves.ru
Mon Jan 14 17:22:21 UTC 2013
Current implementation of osmo_hexparse have couple of limitations (which are
* it refuses to parse odd-length numbers (e. g. 7abdf)
* it fails while parsing 0x prefix (e. g. 0xdead)
Both could be worked around by upper-layer code of course but since both cases above
are perfectly valid hexadecimal numbers I think they should be handled by
osmo_hexparse internally without complicating life of library users.
Attached patch does just that. Please review and merge if it feels OK.
More information about the baseband-devel