Пример #1
0
/* Prints all the Nodes in a list. */
void print_list(Node *node)
{
	//FIX ME!
    print_hashable(node->key);
    printf ("value %p\n", node->value);
    printf ("next %p\n", node->next);
}
Пример #2
0
/* Prints all the Nodes in a list. */
void print_list(Node *node)
{
	if (node == NULL) 
		return;
	print_hashable(node->key);
	print_node(node);
	print_list(node->next);
}
Пример #3
0
/* Prints all the Nodes in a list. */
void print_list(Node *node)
{
    if (node == NULL) {
	return;
    }
    print_hashable(node->key);
    printf ("value %p\n", node->value);
    print_list(node->next);
}
Пример #4
0
/* Prints a Node. */
void print_node(Node *node)
{
    print_hashable(node->key);
    printf ("value %p\n", node->value);
    printf ("next %p\n", node->next);
}