#include <stdio.h>
#include <string.h>
#include "example_fcns.h"
#include "core02_structs.h"
#include "core02_cat.h"
const char *const description =
"Demonstrates inserting a row and reading rows from database";
{
CORE02_RECORD core02_input;
print_error (rc);
{
strncpy (core02_input.message, "Core02", sizeof (core02_input.message));
hDB, TABLE_CORE02_RECORD, &core02_input, sizeof (core02_input),
NULL);
print_error (rc);
else
print_error (rc);
}
return rc;
}
{
CORE02_RECORD core02_output;
print_error (rc);
{
print_error (rc);
{
print_error (rc);
}
{
{
cursor, &core02_output, sizeof (core02_output), NULL);
print_error (rc);
{
printf ("%s\n", core02_output.message);
}
}
{
}
else
{
print_error (rc);
}
}
if (cursor)
{
}
}
return rc;
}
int main_core02 (int argc, const char *const *argv)
{
print_error (rc);
{
rc = exampleOpenDatabase (&hTFS, &hDB, "core02", core02_cat);
{
rc = insertOneRow (hDB);
{
rc = readAllRows (hDB);
}
exampleCleanup (hTFS, hDB);
}
}
return (int) rc;
}