A structure to store the game data.
A structure to store server general data.
void * find_value_by_param(const struct arg_s **arguments, char *param)
! FINDER !!
void refill_map(game_data_t *game_data)
Refill the map with ressources (use in runtime)
int find_index_by_param(const struct arg_s **arguments, char *param)
Find the index where a parameter is in the arg_s structure by his parameter.
int write_to_client(const int fd, const char *str)
Write any message to a specific file descriptor.
void free_args(struct arg_s **args, const size_t size)
Free struct args_s of lenght size.
void free_array(void *to_free)
! FREE !!
size_t get_array_len(char **array)
! GETTER !!
void free_array_size_n(void *to_free, const size_t n)
Free any ** array up to n.
char * array_to_str(int ac, const char **av)
Turn an array of string into a simple string.
char ** str_to_word_array(const char *str, const char delim)
Turn string to char **.
void fill_map(server_handler_t *server)
Fill the map with ressources (use in initialization)
int write_error_msg(const char *str)
! WRITTER !!