SilverScreen Solid Modeler

bt_set_first

bt_set_first

Previous topic Next topic  

bt_set_first

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

Antiquated

 

int bt_set_first( int handle )

 

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

 

 

 




Synopsis

#include "silver.h"

 

The bt_set_first function sets the read marker to the first 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 .

 

 

Return Value

bt_set_first returns 1 if the index is non-empty; and 0 otherwise.

 

 

Comments

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

 

See Also

bt_set_last , bt_set_key

 

 

Example

Here is a simple example; see B-tree Database for more information on the b-tree functions:

 

C / C++ Code

 

 int handle;

 char key[20];

 char data[100];

 

 bt_set_first( handle );

 while ( bt_read( handle, bt_next( handle, key ), data ) ) )

    ss_command ( "note key: %s data: %s", key, data );