SilverScreen Solid Modeler

bt_previous

bt_previous

Previous topic Next topic  

bt_previous

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

Antiquated

 

int bt_previous( int handle, char *key )

 

int   handle;      // an open b-tree database handle

char *key;         // buffer to receive next key value

 

 




Synopsis

#include "silver.h"

 

The bt_previous function accesses the previous entry in the b-tree database index associated with handle .

 

 

Parameters

handle is an open b-tree database handle, as obtained by a call to bt_open . key is a pointer to a character buffer large enough to hold the associated key value

 

 

Return Value

If the read marker is at the startof the index, bt_next returns 0; otherwise, bt_next moves to the previous entry, copies its key value into key , and returns the record_number associated with that key.

 

 

Comments

bt_previous , bt_set_first , bt_set_last and bt_set_key may be used to position the read marker.

 

The btree-family of functions is not available in SilverSharp, except by means of P/Invoke.

 

 

See Also

bt_next, bt_set_first , bt_set_last , bt_set_key