cursor/printChildrenNamesWithUnknownFather.c
{
char name[32];
RDM_RETCODE rc;
rc = rdm_cursorMoveToFirst (children);
{
bool 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_cursorReadColumn(RDM_CURSOR cursor, RDM_COLUMN_ID columnId, void *columnValue, size_t bytesIn, size_t *bytesOut)
Read a single column from a table row.
RDM_RETCODE rdm_cursorHasOwner(RDM_CURSOR cursor, RDM_REF_ID refId, bool *hasOwner)
Check to see if a row is a member for the specified set.