2017-05-15 12:08:10 +00:00
|
|
|
//
|
|
|
|
// Created by Antoine Bartuccio on 15/05/2017.
|
|
|
|
//
|
|
|
|
|
|
|
|
#ifndef FISH_FISH_UTILS_H
|
|
|
|
#define FISH_FISH_UTILS_H
|
|
|
|
|
2017-05-15 13:02:58 +00:00
|
|
|
#include "fish_types.h"
|
|
|
|
|
2017-05-15 12:08:10 +00:00
|
|
|
void crash();
|
|
|
|
|
2017-05-15 13:52:48 +00:00
|
|
|
char *getInsult();
|
|
|
|
|
2017-05-15 13:02:58 +00:00
|
|
|
void freeWordArray(WordArray *array);
|
|
|
|
|
|
|
|
WordList * createWordList();
|
|
|
|
|
|
|
|
void addWordList(WordList *list, char *word);
|
|
|
|
|
|
|
|
void removeWordList(WordList *list);
|
|
|
|
|
|
|
|
void freeWordList(WordList *list);
|
|
|
|
|
|
|
|
WordArray * wordListToWordArray(WordList *list);
|
|
|
|
|
|
|
|
WordList * wordArrayToWordList(WordArray * array);
|
|
|
|
|
2017-05-15 12:08:10 +00:00
|
|
|
#endif //FISH_FISH_UTILS_H
|