/* Returns: the number of elements in the #GSList  */
guint g_slist_length(GSList *list)
/* Returns: the number of elements in the #GSList  */
guint g_slist_length(GSList *list)
{
  guint length;
  length = 0;
  while (list)
    {
      length++;
      list = list->next;
    }
  return length;
}