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

Go to the source code of this file.

Functions

t_stackstack_new (const t_type *type)
 Initializes an empty stack. More...
 

Function Documentation

◆ stack_new()

t_stack* stack_new ( const t_type type)

Initializes an empty stack.

Parameters
typethe type of items that this stack will hold
Returns
The new stack

Definition at line 16 of file stack_new.c.