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;
}
struct RDM_CURSOR_S * RDM_CURSOR
Definition: rdmtypes.h:306
@ eNOTLINKED
Definition: rdmretcodetypes.h:254
@ sOKAY
Definition: rdmretcodetypes.h:97
RDM_RETCODE rdm_cursorUnlinkRow(RDM_CURSOR cursor, RDM_REF_ID refId)
Unlink a row from its owner.
RDM_RETCODE
RDM status and error return codes.
Definition: rdmretcodetypes.h:43