/* Returns: the last child of @node, or NULL if @node has no children  */
GNode* g_node_last_child(GNode *node)
/* Returns: the last child of @node, or NULL if @node has no children  */
GNode* g_node_last_child(GNode *node)
{
  g_return_val_if_fail (node != NULL, NULL);
  node = node->children;
  if (node)
    while (node->next)
      node = node->next;
  return node;
}