drms_record_ex3.c

#include "drms.h"

DRMS_RecordSet_t *recSet = drms_open_records(drms_env, recSetStr, &status);

if (status == 0 && recSet != NULL)
{
   int nRecs = recSet->n;
}

if (recSet != NULL)
{
   drms_close_records(recSet, DRMS_FREE_RECORD);
}


DRMS_RecordSet_t *recSetClone = drms_clone_records(recSet,
                           DRMS_PERMANENT,
                           DRMS_SHARE_SEGMENTS,
                           &status);

if (status == 0 && recSetClone != NULL)
{
   /* Do something with recSetClone here. */
}

if (recSetClone != NULL)
{
   drms_close_records(recSetClone, DRMS_INSERT_RECORD);
}

Generated on Sun Apr 30 07:00:28 2017 for JSOC_Documentation by  doxygen 1.5.7.1