diff options
| -rw-r--r-- | chatbot.c | 3 | ||||
| -rw-r--r-- | gtnw.c | 1 | ||||
| -rw-r--r-- | joshua.c | 3 | ||||
| -rw-r--r-- | strings.c | 1 | ||||
| -rw-r--r-- | util.c | 3 |
5 files changed, 8 insertions, 3 deletions
@@ -1,11 +1,11 @@ #include "gtnw.h" #include "strings.h" #include "util.h" - #include <curses.h> #include <stdlib.h> #include <string.h> #include <unistd.h> + void do_chatbot(void) { int stage=0; /* stage 0: i'm fine how are you... -> @@ -107,3 +107,4 @@ void do_chatbot(void) } // else } // while } + @@ -380,3 +380,4 @@ void global_thermonuclear_war(void) } } + @@ -2,12 +2,12 @@ #include "joshua.h" #include "strings.h" /* predefined strings */ #include "util.h" - #include <curses.h> #include <signal.h> #include <stdlib.h> #include <string.h> #include <unistd.h> + void cleanup(int signum) { endwin(); @@ -90,3 +90,4 @@ void be_joshua() do_chatbot(); endwin(); } + @@ -74,3 +74,4 @@ const char* greetings_responses[] = { const char punctuation_marks[] = { '\'', '?', '.', '/', '`', '~', ',', '+', '!' }; + @@ -1,11 +1,11 @@ #include "strings.h" #include "util.h" - #include <ctype.h> #include <curses.h> #include <string.h> #include <unistd.h> + void allLower(char* str) { for(int i=0;str[i];++i) @@ -46,3 +46,4 @@ void remove_punct(char* buf) } } } + |