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

The file containing the corewar functions. More...

Functions

corewar_tget_corewar (void)
 Get the corewar structure.
 
void free_corewar (void)
 Free the corewar structure and all the memory allocated.
 
int corewar (void)
 The virtual machine of the corewar.
 

Detailed Description

The file containing the corewar functions.

Function Documentation

◆ corewar()

int corewar ( void )

The virtual machine of the corewar.

Returns
int 0 if the corewar is running, 84 otherwise

◆ free_corewar()

void free_corewar ( void )

Free the corewar structure and all the memory allocated.

Returns
void

◆ get_corewar()

corewar_t * get_corewar ( void )

Get the corewar structure.

Returns
corewar_t* The corewar structure