cursor/printChildrenNamesWithUnknownFather.c
static
RDM_RETCODE
printChildrenNamesWithUnknownFather (
RDM_CURSOR
children)
{
char
name[32];
RDM_RETCODE
rc;
rc =
rdm_cursorMoveToFirst
(children);
while
(rc ==
sOKAY
)
{
RDM_BOOL_T
knownFather;
rc =
rdm_cursorHasOwner
(children, REF_FATHERS_CHILDREN, &knownFather);
if
(rc ==
sOKAY
&& knownFather ==
RDM_FALSE
)
{
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);
}
}
if
(rc ==
sENDOFCURSOR
)
rc =
sOKAY
;
return
rc;
}