lib/std/string.cc
// Helper function for converting hexadecimal numbers to strings.
Helper function for converting hexadecimal numbers to strings.
Helper function for converting hexadecimal numbers to strings .
int convert_hex(char *dest, uint32_t to_print) {
  *dest = '0';
  dest++;
  *dest = 'x';
  dest++;
  for (int i = 28; i >= 0; i -= 4) {
    *dest = hexits[(to_print >> i) & 0xF];
    dest++;
  }
  return 10;
}
int convert_hex ( char * dest , uint32_t to_print ) { * dest = ' ' ; dest ++ ; * dest = ' ' ; dest ++ ; for ( int i = 28 ; i >= 0 ; i -= 4 ) { * dest = hexits [ ( to_print >> i ) & 0xF ] ; dest ++ ; } return 10 ; }
Helper function for converting hexadecimal numbers to strings.
Helper function for converting hexadecimal numbers to strings .