p_record array[] = { &r1, &r2, &r3, &r4, &r5 };

for (i = 0; i < array_length (array); i ++)
{
  if (array[i]->x  != 0 | array[i]->y  != 0 |
      array[i]->cx != 0 | array[i]->cy != 0)
  {
    array[i]->x, array[i]->y, array[i]->cx, array[i]->cy = 0;
  }
}
