imageprocessing/debugFunctions.c
int countPoints(POINT_T * first)
{
  int count = 0;
  POINT_T * current = first;
  while (current != NULL)
    {
    count++;
    current = current->next;
    }
  return count;
}
/* Traverse a linked list of points to count how many
 * items it contains.
 * @param first    Pointer to first point
 * @return how many items in the list
 */
Traverse a linked list of points to count how many
items it contains.
@param first    Pointer to first point
@return how many items in the list
Traverse a linked list of points to count how many items it contains . @param first Pointer to first point @return how many items in the list
int countPoints(POINT_T * first)
{
  int count = 0;
  POINT_T * current = first;
  while (current != NULL)
    {
    count++;
    current = current->next;
    }
  return count;
}
int countPoints ( POINT_T * first ) { int count = 0 ; POINT_T * current = first ; while ( current != NULL ) { count ++ ; current = current -> next ; } return count ; }
Traverse a linked list of points to count how many
 items it contains.
Traverse a linked list of points to count how many items it contains .