i want a Btree implementation, 
  then i compiled the Btree.c pager.c os.c etc.
  but i got some error.

#include <stdio.h>
#include "btree.h"

int main(void){
        char* zFilename="test.db";
        Btree** ppBtOne;
        int temp=0;
        int* piTable;   
        BtCursor** ppCur;

        temp=sqliteBtreeOpen(zFilename,0,10,ppBtOne);
        temp=sqliteBtreeBeginTrans(*(ppBtOne));
        temp=sqliteBtreeCreateTable(*(ppBtOne),piTable);
        temp=sqliteBtreeCursor(*(ppBtOne),*piTable,1,ppCur);
        //this line cause the "segmentation fault"

        temp=sqliteBtreeCommit(*(ppBtOne));
        return 0;
}  
        

anybody can tell me why ?
  



Best regards, 
  
duyu


Reply via email to