cursor/cancelClubMembership.c
static RDM_RETCODE cancelClubMembership (RDM_CURSOR adult)
{
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)
{
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;
}