Defines | Functions

db1.c File Reference

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ham/hamsterdb.h>

Go to the source code of this file.

Defines

#define LOOP   1000

Functions

void error (const char *foo, ham_status_t st)
int main (int argc, char **argv)

Define Documentation

#define LOOP   1000

Copyright (C) 2005-2008 Christoph Rupp (chris@crupp.de).

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

See files COPYING.* for License information.

A simple example, which creates a database, inserts some values, looks them up and erases them.

Definition at line 24 of file db1.c.


Function Documentation

void error ( const char *  foo,
ham_status_t  st 
)

Definition at line 27 of file db1.c.

References ham_strerror().

int main ( int  argc,
char **  argv 
)