From: Nathan S. Evans Date: Fri, 30 Jul 2010 14:44:00 +0000 (+0000) Subject: h2s_full, useful for testing X-Git-Tag: initial-import-from-subversion-38251~20797 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1d605879a1c408422e38e7cf10f5a2682f8780aa;p=oweals%2Fgnunet.git h2s_full, useful for testing --- diff --git a/src/include/gnunet_common.h b/src/include/gnunet_common.h index 0639ba0a2..8703dc3b7 100644 --- a/src/include/gnunet_common.h +++ b/src/include/gnunet_common.h @@ -228,6 +228,16 @@ void GNUNET_logger_remove (GNUNET_Logger logger, void *logger_cls); */ const char *GNUNET_h2s (const GNUNET_HashCode *hc); +/** + * Convert a hash value to a string (for printing debug messages). + * This prints all 104 characters of a hashcode! + * This is one of the very few calls in the entire API that is + * NOT reentrant! + * + * @param hc the hash code + * @return string + */ +const char *GNUNET_h2s_full (const GNUNET_HashCode *hc); /** * Convert a peer identity to a string (for printing debug messages).