SilverScreen Solid Modeler

bt_open

bt_open

Previous topic Next topic  

bt_open

Previous topic Next topic JavaScript is required for the print function  

SilverScreenAPI

Antiquated

 

int bt_open( char *tree_file_name, char *data_file_name )

 

char *tree_file_name;        // index file name

char *data_file_name;        // data file name

 

 




Synopsis

#include "silver.h"

 

The bt_open function opens a b-tree database index and data file pair and makes it available for use.

 

 

Parameters

tree_file_name and data_file_name are null-terminated strings that designate the names of files on disk.

 

 

Return Value

If the files are successfully opened, a non-zero handle is returned that may be used with the other b-tree functions; otherwise, 0 is returned.

 

 

Comments

A data file may be opened simultaneously with multiple index files; conversely, each index file should be opened only with a single data file. B-tree databases remain open until explicitly closed by bt_close .

 

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

 

 

See Also

bt_close