cursor/changeAdultName.c
static
RDM_RETCODE
changeAdultName (
RDM_CURSOR
adult,
char
*newName)
{
RDM_RETCODE
rc;
char
name[32];
rc =
rdm_cursorReadColumn
(
adult, COL_ADULT_ADULT_NAME, name,
sizeof
(name), NULL);
if
(rc ==
sOKAY
)
{
printf (
"Change name from %s to %s\n"
, name, newName);
rc =
rdm_cursorUpdateColumn
(
adult, COL_ADULT_ADULT_NAME, newName, strlen (newName) + 1);
}
return
rc;
}