---------------------------------------------------------------------------*/ * Read a temporary configuration description from File * and return a ptr to it. * * @param File open file to read temporary config from * @return Ptr to new temporary configuration description. * * @note Globals: none * @note Exceptions: none * @note History: Tue Mar 19 14:29:59 1991, DSJ, Created. */
| 427 | * @note History: Tue Mar 19 14:29:59 1991, DSJ, Created. |
| 428 | */ |
| 429 | TEMP_CONFIG ReadTempConfig(FILE *File) { |
| 430 | TEMP_CONFIG Config; |
| 431 | |
| 432 | Config = |
| 433 | (TEMP_CONFIG) alloc_struct (sizeof (TEMP_CONFIG_STRUCT), |
| 434 | "TEMP_CONFIG_STRUCT"); |
| 435 | fread ((char *) Config, sizeof (TEMP_CONFIG_STRUCT), 1, File); |
| 436 | |
| 437 | Config->Protos = NewBitVector (Config->ProtoVectorSize * BITSINLONG); |
| 438 | fread ((char *) Config->Protos, sizeof (uinT32), |
| 439 | Config->ProtoVectorSize, File); |
| 440 | |
| 441 | return (Config); |
| 442 | |
| 443 | } /* ReadTempConfig */ |
| 444 | |
| 445 | |
| 446 | /*---------------------------------------------------------------------------*/ |
no test coverage detected