cursor/shutdownClub.c
static RDM_RETCODE shutdownClub (RDM_CURSOR club)
{
rc = rdm_cursorDeleteRow (club);
if (rc == sOKAY)
{
printf ("Club shut down\n");
}
else if (rc == eHASMEMBERS)
{
printf ("Club still has members and can therefor not be shut down\n");
rc = sOKAY;
}
return rc;
}
struct RDM_CURSOR_S * RDM_CURSOR
Definition: rdmtypes.h:306
RDM_RETCODE rdm_cursorDeleteRow(RDM_CURSOR cursor)
Delete a row from a table.
@ sOKAY
Definition: rdmretcodetypes.h:97
@ eHASMEMBERS
Definition: rdmretcodetypes.h:178
RDM_RETCODE
RDM status and error return codes.
Definition: rdmretcodetypes.h:43