From 1d605879a1c408422e38e7cf10f5a2682f8780aa Mon Sep 17 00:00:00 2001 From: "Nathan S. Evans" Date: Fri, 30 Jul 2010 14:44:00 +0000 Subject: [PATCH] h2s_full, useful for testing --- src/include/gnunet_common.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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). -- 2.25.1