copy the head of the successor list of
i
into its link field and set the head to point to the new record
setlink(pointer,succ[i]);
succ[i] = pointer;