hamsterdb Embedded Database  2.1.1
Defines | Functions
db5.c File Reference
#include <stdio.h>
#include <string.h>
#include <ham/hamsterdb.h>

Go to the source code of this file.

Defines

#define DATABASE_NAME   1

Functions

int main (int argc, char **argv)

Define Documentation

#define DATABASE_NAME   1

Copyright (C) 2005-2013 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.

This sample demonstrates the use of duplicate items. Every line is split into words, and each word is inserted with its line number. Then a cursor is used to print all words in a sorted order, with the lines in which the word occurred.

Definition at line 22 of file db5.c.

Referenced by main().


Function Documentation

int main ( int  argc,
char **  argv 
)