smsutil: Update the doc for extract_bcd_number

This commit is contained in:
Denis Kenzior 2010-05-26 09:17:25 -05:00
parent 4cb2eec891
commit 795f0f3406
1 changed files with 4 additions and 0 deletions

View File

@ -53,6 +53,10 @@ static GSList *sms_assembly_add_fragment_backup(struct sms_assembly *assembly,
guint16 ref, guint8 max, guint8 seq,
gboolean backup);
/*
* This function uses the meanings of digits 10..15 according to the rules
* defined in 23.040 Section 9.1.2.3 and 24.008 Table 10.5.118
*/
void extract_bcd_number(const unsigned char *buf, int len, char *out)
{
static const char digit_lut[] = "0123456789*#abc\0";