blob: 89e5cc51ba0e4edff4cb5fd2a6dcb7767ceeec94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include <curses.h>
#include <util.h>
#include <strings.h>
void do_chatbot(void)
{
while(1)
{
char buf[513];
int ret=getnstr(buf, 512);
if(ret==ERR)
{
print_string("\n\n");
print_string(cantUnderstand_respond[sizeof(cantUnderstand_respond)/sizeof(const char*)]);
print_string("\n\n");
}
}
}
|