Source code for the RDM core02 example. More...
#include <stdio.h>
#include <string.h>
#include "rdm.h"
#include "core02_db_structs.h"
#include "core02_db_cat.h"
Macros | |
#define | PRINTERROR(rc) |
Standard error print format for popcorn examples. More... | |
Functions | |
RDM_RETCODE | insertOneRow (RDM_DB hDB) |
Insert one row into the core02 database. More... | |
RDM_RETCODE | readAllRows (RDM_DB hDB) |
Reads and displays all rows in the core02 database. More... | |
int | main (void) |
Main function for Core02 example. More... | |
Source code for the RDM core02 example.
#define PRINTERROR | ( | rc | ) |
Standard error print format for popcorn examples.
This macro demonstrates the usage of the rdm_retcodeGetName() and rdm_retcodeGetDescription() functions
RDM_RETCODE insertOneRow | ( | RDM_DB | hDB | ) |
Insert one row into the core02 database.
This function adds one more row to the core02 database. The row contains only a non-indexed character string.
[in] | hDB | RDM db handle with the database open |
int main | ( | void | ) |
Main function for Core02 example.
The function initializes the RDM environment and runs the create, read operations.
RDM_RETCODE readAllRows | ( | RDM_DB | hDB | ) |
Reads and displays all rows in the core02 database.
This function reads and displays all rows in the core02 database. Each time the core02 program is executed, an additional row will be added to the database.
[in] | hDB | RDM db handle with the database open |