void UnFmtIn( void ) { //================= if( _NoRecordOrganization( IOCB->fileinfo ) ) { StreamUnFmtIn(); } else { RecordUnFmtIn(); } }
void FGetBuff( ftnfile *fcb ) { //================================ // Read a record from a file. if( _NoRecordOrganization( fcb ) ) { fcb->len = FGetRec( fcb->fileptr, fcb->buffer, fcb->len ); } else { fcb->len = FGetRec( fcb->fileptr, fcb->buffer, fcb->bufflen ); } }
void UpdateRecNum( ftnfile *fcb ) { //==================================== if( _NoRecordOrganization( fcb ) ) return; if( _LogicalRecordOrganization( fcb ) ) { if( (fcb->flags & FTN_LOGICAL_RECORD) == 0 ) { // increment record count if this is first // physical record of logical record ++fcb->recnum; } // next record will be part of a logical record fcb->flags |= FTN_LOGICAL_RECORD; } else { ++fcb->recnum; } }