third_party_software/hmmer-3.0-linux-intel-x86_64/easel/miniapps/esl-alimanip.c
/* digit_to_char
 *                   
 * Given a digit (0-9) return the character reprentation of it.
 * There must be a better way to do this; oh well.
 */


Given a digit (0-9) return the character reprentation of it.
There must be a better way to do this; oh well.
Given a digit ( 0 - 9 ) return the character reprentation of it . There must be a better way to do this ; oh well .
static char
digit_to_char(int digit) 
{
  if(digit == 0) return '0';
  if(digit == 1) return '1';
  if(digit == 2) return '2';
  if(digit == 3) return '3';
  if(digit == 4) return '4';
  if(digit == 5) return '5';
  if(digit == 6) return '6';
  if(digit == 7) return '7';
  if(digit == 8) return '8';
  if(digit == 9) return '9';
  else return '?';
}
static char digit_to_char ( int digit ) { if ( digit == 0 ) return ' ' ; if ( digit == 1 ) return ' ' ; if ( digit == 2 ) return ' ' ; if ( digit == 3 ) return ' ' ; if ( digit == 4 ) return ' ' ; if ( digit == 5 ) return ' ' ; if ( digit == 6 ) return ' ' ; if ( digit == 7 ) return ' ' ; if ( digit == 8 ) return ' ' ; if ( digit == 9 ) return ' ' ; else return ' ' ; }
digit_to_char
digit_to_char