src/globals/utils.c
char* hexstr64(uns64 value) {
  static char hex64_buffer[MAX_SIMULTANEOUS_STRINGS][MAX_STR_LENGTH + 1];
  static int  counter = 0;

  counter = CIRC_INC2(counter, MAX_SIMULTANEOUS_STRINGS);
  snprintf(hex64_buffer[counter], MAX_STR_LENGTH, "%08x%08x",
           (uns)(value >> 32), (uns)(value & 0xffffffff));
  return hex64_buffer[counter];
}
/**************************************************************************************/
/* hexstr64: This little function exists to convert a 64-bit integer into a
 string.  Its implementation is a little ugly, but it is intended to be called
 from printf, so I need it to return a pointer to a string.  */
This little function exists to convert a 64-bit integer into a
string.  Its implementation is a little ugly, but it is intended to be called
from printf, so I need it to return a pointer to a string.
This little function exists to convert a 64 - bit integer into a string . Its implementation is a little ugly but it is intended to be called from printf so I need it to return a pointer to a string .
char* hexstr64(uns64 value) {
  static char hex64_buffer[MAX_SIMULTANEOUS_STRINGS][MAX_STR_LENGTH + 1];
  static int  counter = 0;
  counter = CIRC_INC2(counter, MAX_SIMULTANEOUS_STRINGS);
  snprintf(hex64_buffer[counter], MAX_STR_LENGTH, "%08x%08x",
           (uns)(value >> 32), (uns)(value & 0xffffffff));
  return hex64_buffer[counter];
}
char * hexstr64 ( uns64 value ) { static char hex64_buffer [ MAX_SIMULTANEOUS_STRINGS ] [ MAX_STR_LENGTH + 1 ] ; static int counter = 0 ; counter = CIRC_INC2 ( counter , MAX_SIMULTANEOUS_STRINGS ) ; snprintf ( hex64_buffer [ counter ] , MAX_STR_LENGTH , " " , ( uns ) ( value >> 32 ) , ( uns ) ( value & 0xffffffff ) ) ; return hex64_buffer [ counter ] ; }
hexstr64: This little function exists to convert a 64-bit integer into a
string.
hexstr64 : This little function exists to convert a 64 - bit integer into a string .