---------------------------------------------------------------------------*/ * 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 * @note Exceptions: none * @note History: Tue Mar 19 13:55:44 1991, DSJ, Created. */
| 533 | * @note History: Tue Mar 19 13:55:44 1991, DSJ, Created. |
| 534 | */ |
| 535 | void WritePermConfig(FILE *File, PERM_CONFIG Config) { |
| 536 | uinT8 NumAmbigs = 0; |
| 537 | |
| 538 | assert (Config != NULL); |
| 539 | while (Config->Ambigs[NumAmbigs] > 0) ++NumAmbigs; |
| 540 | |
| 541 | fwrite((char *) &NumAmbigs, sizeof(uinT8), 1, File); |
| 542 | fwrite(Config->Ambigs, sizeof(UNICHAR_ID), NumAmbigs, File); |
| 543 | fwrite(&(Config->FontinfoId), sizeof(int), 1, File); |
| 544 | } /* WritePermConfig */ |
| 545 | |
| 546 | |
| 547 | /*---------------------------------------------------------------------------*/ |