mirror of
https://gitlab.com/klmp200/fish.git
synced 2024-11-22 00:33:20 +00:00
yis compile + great insult
This commit is contained in:
parent
4f6dcd2b4a
commit
3eea812666
@ -250,7 +250,7 @@ WordList* getFiles(char* path, char* wildcardedString){
|
|||||||
|
|
||||||
while((dir = readdir(directory)) != NULL){
|
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);
|
char* filePath = trueStrcat(path, dir->d_name);
|
||||||
addEndWordList(files, filePath);
|
addEndWordList(files, filePath);
|
||||||
|
@ -38,7 +38,8 @@ char *getInsult(){
|
|||||||
(char *) "Oh ! Une erreur ! Comme ta vie en fait...",
|
(char *) "Oh ! Une erreur ! Comme ta vie en fait...",
|
||||||
(char *) "Nul !",
|
(char *) "Nul !",
|
||||||
(char *) "Pense à aller à l'école un jour",
|
(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){
|
if (!init){
|
||||||
srand((unsigned int) time(NULL));
|
srand((unsigned int) time(NULL));
|
||||||
|
Loading…
Reference in New Issue
Block a user