cursor/printChildrenNamesWithUnknownFather.c
{
char name[32];
RDM_RETCODE rc;
rc = rdm_cursorMoveToFirst (children);
{
RDM_BOOL_T knownFather;
rc = rdm_cursorHasOwner (children, REF_FATHERS_CHILDREN, &knownFather);
{
rc = rdm_cursorReadColumn (
children, COL_CHILD_CHILD_NAME, name, sizeof (name), NULL);
if (rc == sOKAY)
{
printf ("Child with unknown father and name: %s\n", name);
}
}
if (rc == sOKAY)
{
rc = rdm_cursorMoveToNext (children);
}
}
rc = sOKAY;
return rc;
}
RDM_RETCODE rdm_cursorHasOwner(RDM_CURSOR cursor, RDM_REF_ID refId, RDM_BOOL_T *hasOwner)
Check to see if a row is a member for the specified set.
RDM_RETCODE rdm_cursorReadColumn(RDM_CURSOR cursor, RDM_COLUMN_ID columnId, void *columnValue, size_t bytesIn, size_t *bytesOut)
Read a single column from a table row.