c-project/C Project/C Project/chatbot.c
int chatbot_do_exit(int inc, char* inv[], char* response, int n) {
	knowledge_reset();                                                        // We need to reset the knowledge base as well to clear the memory
	snprintf(response, n, "Goodbye! Thanks for talking with me!");
	return 1;
}
/*
 * Perform the EXIT intent.
 *
 * See the comment at the top of the file for a description of how this
 * function is used.
 *
 * Returns:
 *   0 (the chatbot always continues chatting after a question)
 */
Perform the EXIT intent.

See the comment at the top of the file for a description of how this
function is used.

0 (the chatbot always continues chatting after a question)
Perform the EXIT intent . See the comment at the top of the file for a description of how this function is used . 0 ( the chatbot always continues chatting after a question )
int chatbot_do_exit(int inc, char* inv[], char* response, int n) {
	knowledge_reset();                                                        
	snprintf(response, n, "Goodbye! Thanks for talking with me!");
	return 1;
}
int chatbot_do_exit ( int inc , char * inv [ ] , char * response , int n ) { knowledge_reset ( ) ; snprintf ( response , n , " " ) ; return 1 ; }
Perform the EXIT intent.
Perform the EXIT intent .
// We need to reset the knowledge base as well to clear the memory
