Corewar documentation 1.0.0
Loading...
Searching...
No Matches
arena.c File Reference

The file containing the arena functions. More...

Functions

node_tcreate_arena (void)
 Create the arena.
 
int build_arena (void)
 Build the arena.
 
void display_arena (void)
 Display the arena.
 
node_tget_arena_node (int address)
 Get the arena node from an address.
 

Detailed Description

The file containing the arena functions.

Function Documentation

◆ build_arena()

int build_arena ( void )

Build the arena.

Returns
int 0 if an error occurred, 84 otherwise

◆ create_arena()

node_t * create_arena ( void )

Create the arena.

Returns
nodes_t* The arena

◆ display_arena()

void display_arena ( void )

Display the arena.

Returns
void

◆ get_arena_node()

node_t * get_arena_node ( int address)

Get the arena node from an address.

Parameters
addressThe address of the node
Returns
node_t* The arena