fish/fish_lib/fish_lib.h

38 lines
587 B
C
Raw Normal View History

2017-05-11 15:16:06 +00:00
//
// Created by Antoine Bartuccio on 11/05/2017.
//
#ifndef FISH_FISH_LIB_H
#define FISH_FISH_LIB_H
typedef struct {
char ** words;
int size;
} WordArray;
2017-05-11 15:16:06 +00:00
typedef struct {
char *PS1;
} Settings;
2017-05-11 15:16:06 +00:00
/* WordArray functions */
WordArray * split(char *string, char *separator);
void freeWordArray(WordArray *array);
/* Settings functions */
Settings * getSettings();
2017-05-11 15:16:06 +00:00
/* General purpose functions */
void fishLoop(Settings * settings);
char * fishReadLine();
int countSeparators(char *string, char *separators);
2017-05-11 15:16:06 +00:00
char * fishExpand(char* line);
2017-05-11 15:16:06 +00:00
#endif //FISH_FISH_LIB_H