diff --git a/aha/insult.c b/aha/insult.c index ab594ded5f3..9e460a85529 100644 --- a/aha/insult.c +++ b/aha/insult.c @@ -7,20 +7,27 @@ */ #include #include -#define N 4 -char* list[] = {"Fuck you", +#define N 5 + +/* The element 0 is reserved for that insult is not set and if the program is + * started from the shell with no arguments nothing should happen + * atoi(sss) -> 0 + */ +char* list[] = {"", + "Fuck you", "Is that all? I want to do more ...", "Go away", "I love you"}; int main(int argc, char* argv[]){ int idx; - if (argc==2){ - idx=atoi(argv[1]); - if ((idx>=0) && (idx=0) && (idx