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;
}
@ eHASMEMBERS
Definition: rdmretcodetypes.h:181
struct RDM_CURSOR_S * RDM_CURSOR
Definition: rdmtypes.h:347
RDM_RETCODE rdm_cursorDeleteRow(RDM_CURSOR cursor)
Delete a row from a table.
@ sOKAY
Definition: rdmretcodetypes.h:100
enum RDM_RETCODE_E RDM_RETCODE
RaimaDB status and error return codes.