From 795f0f340672582696711929ca416c0839cc77e2 Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Wed, 26 May 2010 09:17:25 -0500 Subject: [PATCH] smsutil: Update the doc for extract_bcd_number --- src/smsutil.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/smsutil.c b/src/smsutil.c index 6f8e9c57..af9632a0 100644 --- a/src/smsutil.c +++ b/src/smsutil.c @@ -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";