no need to test for another record

while (data[*ploc].key != key)