Products Support Documentation Download
Macros | Functions
Core05.c File Reference

Source code for the RDM core05 example. More...

#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "rdm.h"
#include "core05_db_structs.h"
#include "core05_db_cat.h"

Macros

#define print_error(rc)   print_errorEx (rc, __FILE__, __LINE__)
 Standard error print macro.
 

Functions

void print_errorEx (RDM_RETCODE rc, const char *file, int line)
 Standard error print format for popcorn examples. More...
 
int main (void)
 Main function for core04 example. More...
 

Detailed Description

Source code for the RDM core05 example.

Function Documentation

◆ main()

int main ( void  )

Main function for core04 example.

The function initializes the RDM environment and runs the create, read operations.

Returns
Returns the RDM_RETCODE on exit.

◆ print_errorEx()

void print_errorEx ( RDM_RETCODE  rc,
const char *  file,
int  line 
)

Standard error print format for popcorn examples.

This demonstrates the usage of the rdm_retcodeGetName() and rdm_retcodeGetDescription() functions.

Parameters
[in]rcRDM_RETCODE to analyze
[in]fileSourcec filename
[in]lineLineno in source file