#include "compound_key_structs.h"
#include "compound_key_cat.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
static const INFO infos[] = {
int32_t main_compound_keyTutorial (int32_t argc, const char *const *argv)
{
{
{
{
}
{
{
{
printf ("I can't open the compound_key database.");
}
}
{
db, tables,
RDM_LEN (tables), NULL, 0, NULL);
}
{
{
}
else
{
}
}
{
db, tables,
RDM_LEN (tables), NULL, 0, NULL);
}
{
uint32_t ii;
{
db, TABLE_INFO, &infos[ii], sizeof (infos[ii]),
NULL);
}
{
}
else
{
}
}
{
strcpy (mykey.mychar, "John");
}
{
db, KEY_INFO_MYKEY, &key, &key, &cursor);
{
{
cursor, &sInfo, sizeof (sInfo), NULL);
{
printf (
"Row found doing a search key range "
"lookup: "
"%s, %d\n",
sInfo.mychar, sInfo.myage);
}
{
}
}
{
}
}
}
}
}
}
{
printf (
"There was an error in this Tutorial (%s - %s)\n",
return EXIT_FAILURE;
}
return EXIT_SUCCESS;
}