upscaledb  2.2.1
Macros | Functions
db3.c File Reference
#include <stdio.h>
#include <string.h>
#include <ups/upscaledb.h>

Go to the source code of this file.

Macros

#define DATABASE_NAME   1
 

Functions

static int my_string_compare (ups_db_t *db, const uint8_t *lhs, uint32_t lhs_length, const uint8_t *rhs, uint32_t rhs_length)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

#define DATABASE_NAME   1

This sample uses upscaledb to sort data from stdin. Every word is inserted into the database (duplicate words are ignored). Then a cursor is used to print all words in sorted order.

Definition at line 27 of file db3.c.

Referenced by main().

Function Documentation

int main ( int  argc,
char **  argv 
)
static int my_string_compare ( ups_db_t db,
const uint8_t lhs,
uint32_t  lhs_length,
const uint8_t rhs,
uint32_t  rhs_length 
)
static

Definition at line 30 of file db3.c.

Referenced by main().