data_structures
Functions
list_new.c File Reference
#include "list.h"
+ Include dependency graph for list_new.c:

Go to the source code of this file.

Functions

t_listlist_new (const t_type *type)
 Allocates memory and initializes an empty list. More...
 

Function Documentation

◆ list_new()

t_list* list_new ( const t_type type)

Allocates memory and initializes an empty list.

Parameters
thetype of items that this list will hold
Returns
An empty list

Definition at line 16 of file list_new.c.