gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r30543 - gnunet/src/util


From: gnunet
Subject: [GNUnet-SVN] r30543 - gnunet/src/util
Date: Tue, 5 Nov 2013 21:50:28 +0100

Author: grothoff
Date: 2013-11-05 21:50:28 +0100 (Tue, 05 Nov 2013)
New Revision: 30543

Modified:
   gnunet/src/util/strings.c
Log:
-tolerate lower case letters

Modified: gnunet/src/util/strings.c
===================================================================
--- gnunet/src/util/strings.c   2013-11-05 20:42:57 UTC (rev 30542)
+++ gnunet/src/util/strings.c   2013-11-05 20:50:28 UTC (rev 30543)
@@ -778,6 +778,8 @@
     return a - '0';
   if ((a >= 'A') && (a <= 'V'))
     return (a - 'A' + 10);
+  if ((a >= 'a') && (a <= 'v'))
+    return (a - 'a' + 10);
   return -1;
 }
 
@@ -855,10 +857,10 @@
  * out_size must match exactly the size of the data before it was encoded.
  *
  * @param enc the encoding
- * @param enclen number of characters in 'enc' (without 0-terminator, which 
can be missing)
+ * @param enclen number of characters in @a enc (without 0-terminator, which 
can be missing)
  * @param out location where to store the decoded data
- * @param out_size size of the output buffer
- * @return GNUNET_OK on success, GNUNET_SYSERR if result has the wrong encoding
+ * @param out_size size of the output buffer @a out
+ * @return #GNUNET_OK on success, #GNUNET_SYSERR if result has the wrong 
encoding
  */
 int
 GNUNET_STRINGS_string_to_data (const char *enc, size_t enclen,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]