Action:
|
Reads an integer by reading a long and converting.
|
|
Prototype:
|
int read_int ();
|
|
|
int read_int(
|
|
|
const char*& test_string
|
// string to be read
|
|
|
);
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "kernel/kernutil/fileio/fileio.hxx"
|
|
Description:
|
This routine is used as part of restore from a SAT or SAB file. Reads an integer by reading a long and converting. Some compilers will give a warning for this shortening, but it may be ignored. Implementations for machines with ints and longs different lengths may well want a different version.
ActiveFile is a
FileInterface object and does most of the actual work.
|
|
|
return ActiveFile ? (int)(ActiveFile->read_long()) : 0;
|
|
Call the appropriate SatFile or SabFile method
|
|
Library:
|
kernel
|
|
Filename:
|
kern/kernel/kernutil/fileio/fileio.hxx
|
|
Effect:
|
Read-only
|