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

The file containing the functions for reading a file. More...

Functions

char * read_file (char *filepath, int size, int start)
 Read a file and return the content.
 

Detailed Description

The file containing the functions for reading a file.

Function Documentation

◆ read_file()

char * read_file ( char * filepath,
int size,
int start )

Read a file and return the content.

Parameters
filepathThe file path
sizeThe size of the bytes to read
startThe start of the reading
Returns
char* The content of the file or NULL if an error occurred