1
0
mirror of https://gitlab.com/klmp200/fish.git synced 2024-12-22 07:41:08 +00:00

yis compile + great insult

This commit is contained in:
Antoine Bartuccio 2017-06-13 15:57:13 +02:00
parent 4f6dcd2b4a
commit 3eea812666
2 changed files with 3 additions and 2 deletions

View File

@ -250,7 +250,7 @@ WordList* getFiles(char* path, char* wildcardedString){
while((dir = readdir(directory)) != NULL){
if(wildcardedString != NULL && dir->d_name != NULL && strcmp(dir->d_name, ".") && strcmp(dir->d_name, "..") && wildcardedStringMatches(wildcardedString, dir->d_name)){//sorry strcmp but I dont like you :(
if(wildcardedString != NULL && strcmp(dir->d_name, ".") && strcmp(dir->d_name, "..") && wildcardedStringMatches(wildcardedString, dir->d_name)){//sorry strcmp but I dont like you :(
char* filePath = trueStrcat(path, dir->d_name);
addEndWordList(files, filePath);

View File

@ -38,7 +38,8 @@ char *getInsult(){
(char *) "Oh ! Une erreur ! Comme ta vie en fait...",
(char *) "Nul !",
(char *) "Pense à aller à l'école un jour",
(char *) "Et après on dit que c'est la faute de l'ordinateur..."
(char *) "Et après on dit que c'est la faute de l'ordinateur...",
(char *) "Tocard !"
};
if (!init){
srand((unsigned int) time(NULL));