cursor/changeAdultIdentity.c
static RDM_RETCODE changeAdultIdentity (
RDM_CURSOR adult,
const ADULT *newIdentity)
{
rc = rdm_cursorUpdateRow (adult, newIdentity, sizeof (ADULT));
if (rc == sOKAY)
{
printf (
"Changed identity to %d, %s\n", newIdentity->adult_id,
newIdentity->adult_name);
}
if (rc == sOKAY)
{
rc = rdm_cursorGetStatus (adult, &status);
}
/* How the following behaves depend on the cursor that is passed in */
if (rc == sOKAY && status == CURSOR_CHANGED)
{
printf ("The key value for the cursor used to change"
" the identity have changed\n");
}
return rc;
}