cursor/cancelClubMembership.c
static
RDM_RETCODE
cancelClubMembership (
RDM_CURSOR
adult)
{
RDM_RETCODE
rc;
rc =
rdm_cursorUnlinkRow
(adult, REF_MEMBERS);
if
(rc ==
sOKAY
)
{
printf (
"Canceled club membership\n"
);
}
else
if
(rc ==
eNOTLINKED
)
{
printf (
"Is not a member\n"
);
rc =
sOKAY
;
}
return
rc;
}
static
RDM_RETCODE
cancelJuniorClubMembership (
RDM_CURSOR
child)
{
RDM_RETCODE
rc;
rc =
rdm_cursorUnlinkRow
(child, REF_JUNIOR_MEMBERS);
if
(rc ==
sOKAY
)
{
printf (
"Canceled club membership\n"
);
}
else
if
(rc ==
eNOTLINKED
)
{
printf (
"Is not a member\n"
);
rc =
sOKAY
;
}
return
rc;
}