Previous: Rewinding an /rdb File, Up: Rewinding an /rdb File


A.5.1 rdb_rewind

rewind database to first data row

Synopsis

     #include <mst_rdb/mst_rdb.h>
     
     
     
int rdb_rewind( FILE *fin, rdbHeader *hdr );

Parameters

FILE *fin
the stream to parse
rdbHeader *hdr
the rdb file description

Description

rdb_rewind repositions the database such that the next read will return the first row in the database.

Returns

Upon success it returns 0. If the file cannot be rewound, it returns 1. Upon error it returns -1.

Author

Diab Jerius