-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfunctions.h
60 lines (50 loc) · 1.13 KB
/
functions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
#ifndef FUNCTIONS_H_INCLUDED
#define FUNCTIONS_H_INCLUDED
//#include <stdio.h>
//#include "db.h"
//#include "main.h"
#define TRUE 1
#define FALSE 0
// Global
#include "stdlib.h"
#include "string.h"
#include "global.h"
#include <ctype.h>
//#include <stdio.h>
//
void get_string(void);
void parse(void);
int isword(char*);
int is_nonsense_word(char*);
int isconsonant(char);
int isvowel(char);
int isquestion(void);
int isstatement(void);
int iscommand(void);
int separate_words(char*, char[MAX_WORDS][MAX_LETTERS]);
//int template_search(char*, template_info_type*);
//int check_gender_by_name(char*, char*);
int check_gender_by_name(char*);
//void get_time(char*);
void stioc(char*);
extern int socket_desc;
int get_time(void);
extern int irc;
extern char channel[20];
//int isvalidname(char*);
int isverb(char*);
void normalize(void);
typedef struct test
{
char* line[80];
char* template2[80];
char* function_name[80];
int parameter1;
int parameter2;
int parameter3;
//int code;
} template_info_type;
// char current_time[MAX_STRING_LEN];
// char current_time[80];
int current_time;
#endif // FUNCTIONS_H_INCLUDED