the sentinel was input and the list is not null, so the link field of the new record's predecessor (the last list record) must be set to null and
done
to true
else if (*plistname != recordpointer)
{
setlink(predecessor,setnull());
*pdone = TRUE;
}