RandomizeBloodBonus.h
void PrintGrowthLine(FILE *log, unsigned char *growthbuffer)
{
  int i, k, statsclone, length;
  
  for(i = 0; i < 8; i++)
  {
    length = 1;
    
    // Determining nr of digits
    statsclone = growthbuffer[i];
    while(statsclone /= 10)
    {
      length++;
    }
    fputc('|', log);
    for(k = 0; k < (4 - length); k++)
    {
      fputc(' ', log);
    }
    fprintf(log, "%d", growthbuffer[i]);
    fputc('%', log);
  }
  fputc('|', log);
  fputc('\n', log);
  
  return;
}
/* Function for printing a line of growths to log */
Function for printing a line of growths to log
Function for printing a line of growths to log
void PrintGrowthLine(FILE *log, unsigned char *growthbuffer)
{
  int i, k, statsclone, length;
  for(i = 0; i < 8; i++)
  {
    length = 1;
    statsclone = growthbuffer[i];
    while(statsclone /= 10)
    {
      length++;
    }
    fputc('|', log);
    for(k = 0; k < (4 - length); k++)
    {
      fputc(' ', log);
    }
    fprintf(log, "%d", growthbuffer[i]);
    fputc('%', log);
  }
  fputc('|', log);
  fputc('\n', log);
  return;
}
void PrintGrowthLine ( FILE * log , unsigned char * growthbuffer ) { int i , k , statsclone , length ; for ( i = 0 ; i < 8 ; i ++ ) { length = 1 ; statsclone = growthbuffer [ i ] ; while ( statsclone /= 10 ) { length ++ ; } fputc ( ' ' , log ) ; for ( k = 0 ; k < ( 4 - length ) ; k ++ ) { fputc ( ' ' , log ) ; } fprintf ( log , " " , growthbuffer [ i ] ) ; fputc ( ' ' , log ) ; } fputc ( ' ' , log ) ; fputc ( ' \n ' , log ) ; return ; }
Function for printing a line of growths to log
Function for printing a line of growths to log
// Determining nr of digits
