List of: Functions
Subjects: SAT Save and Restore
Contents: Kernel

Action: Reads an identifier.

Prototype: int read_id (

char* buf, // id string

int buflen // length of buffer

= 0


Includes: #include "kernel/acis.hxx"

#include "kernel/kernutil/fileio/fileio.hxx"

Description: The save identifier written with C printf format "%s ". Read an entity identifier. In text mode, this is just a sequence of non-blank characters. In binary mode, it is a sequence of counted strings, of which all but the last have negative counts. These strings are assembled into the buffer, separated by '-'. The result is placed in a caller-supplied buffer - overflow causes an error, unless the length is given zero or negative, in which case no overflow is detected. ActiveFile is a FileInterface object and does most of the actual work.

return ActiveFile ? ActiveFile->read_id(buf, buflen) : 0;
Call the appropriate SatFile or SabFile method

Library: kernel

Filename: kern/kernel/kernutil/fileio/fileio.hxx

Effect: Read-only