src/classify/adaptive.cpp
void WritePermConfig(FILE *File, PERM_CONFIG_STRUCT *Config) {
  uint8_t NumAmbigs = 0;

  assert(Config != nullptr);
  while (Config->Ambigs[NumAmbigs] > 0) {
    ++NumAmbigs;
  }

  fwrite(&NumAmbigs, sizeof(uint8_t), 1, File);
  fwrite(Config->Ambigs, sizeof(UNICHAR_ID), NumAmbigs, File);
  fwrite(&(Config->FontinfoId), sizeof(int), 1, File);
}
/*---------------------------------------------------------------------------*/
/**
 * This routine writes a binary representation of a
 * permanent configuration to File.
 *
 * @param File  open file to write Config to
 * @param Config  permanent config to write to File
 *
 * @note Globals: none
 */
This routine writes a binary representation of a
permanent configuration to File.

@param File  open file to write Config to
@param Config  permanent config to write to File

@note Globals: none
This routine writes a binary representation of a permanent configuration to File . @param File open file to write Config to @param Config permanent config to write to File @note Globals : none
void WritePermConfig(FILE *File, PERM_CONFIG_STRUCT *Config) {
  uint8_t NumAmbigs = 0;
  assert(Config != nullptr);
  while (Config->Ambigs[NumAmbigs] > 0) {
    ++NumAmbigs;
  }
  fwrite(&NumAmbigs, sizeof(uint8_t), 1, File);
  fwrite(Config->Ambigs, sizeof(UNICHAR_ID), NumAmbigs, File);
  fwrite(&(Config->FontinfoId), sizeof(int), 1, File);
}
void WritePermConfig ( FILE * File , PERM_CONFIG_STRUCT * Config ) { uint8_t NumAmbigs = 0 ; assert ( Config != nullptr ) ; while ( Config -> Ambigs [ NumAmbigs ] > 0 ) { ++ NumAmbigs ; } fwrite ( & NumAmbigs , sizeof ( uint8_t ) , 1 , File ) ; fwrite ( Config -> Ambigs , sizeof ( UNICHAR_ID ) , NumAmbigs , File ) ; fwrite ( & ( Config -> FontinfoId ) , sizeof ( int ) , 1 , File ) ; }
This routine writes a binary representation of a
 permanent configuration to File.
This routine writes a binary representation of a permanent configuration to File .