Esempio n. 1
0
void    UnFmtIn( void ) {
//=================

    if( _NoRecordOrganization( IOCB->fileinfo ) ) {
        StreamUnFmtIn();
    } else {
        RecordUnFmtIn();
    }
}
Esempio n. 2
0
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 );
    }
}
Esempio n. 3
0
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;
    }
}