mirror of
https://gitlab.com/klmp200/fish.git
synced 2024-11-14 04:43:20 +00:00
35 lines
772 B
C
35 lines
772 B
C
//
|
|
// Created by Antoine Bartuccio on 15/05/2017.
|
|
//
|
|
|
|
#ifndef FISH_FISH_UTILS_H
|
|
#define FISH_FISH_UTILS_H
|
|
|
|
#include "fish_types.h"
|
|
|
|
void crash(); // Tested
|
|
|
|
char *getInsult(); // Tested
|
|
|
|
void freeWordArray(WordArray *array); // Tested
|
|
|
|
WordList * createWordList(); // Tested
|
|
|
|
WordList * sliceWordList(WordList *list, int min_index, int max_index);
|
|
|
|
void addWordList(WordList *list, char *word); // Tested
|
|
|
|
void removeWordList(WordList *list); // Tested
|
|
|
|
void removeWordListElem(WordList *list, WordListElement *elem);
|
|
|
|
void freeWordList(WordList *list); // Tested
|
|
|
|
WordArray * wordListToWordArray(WordList *list); // Tested
|
|
|
|
WordList * wordArrayToWordList(WordArray * array); // Tested
|
|
|
|
WordList * splitWordList(WordList *list, char * tokens);
|
|
|
|
#endif //FISH_FISH_UTILS_H
|