aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chatbot.c3
-rw-r--r--gtnw.c1
-rw-r--r--joshua.c3
-rw-r--r--strings.c1
-rw-r--r--util.c3
5 files changed, 8 insertions, 3 deletions
diff --git a/chatbot.c b/chatbot.c
index ae3e2c6..81ede03 100644
--- a/chatbot.c
+++ b/chatbot.c
@@ -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
}
+
diff --git a/gtnw.c b/gtnw.c
index 22b8e23..adf6b9e 100644
--- a/gtnw.c
+++ b/gtnw.c
@@ -380,3 +380,4 @@ void global_thermonuclear_war(void)
}
}
+
diff --git a/joshua.c b/joshua.c
index 3a65de0..1183586 100644
--- a/joshua.c
+++ b/joshua.c
@@ -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();
}
+
diff --git a/strings.c b/strings.c
index 1cc22ae..8109fa4 100644
--- a/strings.c
+++ b/strings.c
@@ -74,3 +74,4 @@ const char* greetings_responses[] = {
const char punctuation_marks[] = {
'\'', '?', '.', '/', '`', '~', ',', '+', '!'
};
+
diff --git a/util.c b/util.c
index 2f319f9..5e22489 100644
--- a/util.c
+++ b/util.c
@@ -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)
}
}
}
+