Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
BitchX
GitHub Repository: BitchX/BitchX1.3
Path: blob/master/dll/possum/head.h
1069 views
1
#ifndef HEAD_H
2
#define HEAD_H 1
3
4
#include <ctype.h>
5
#include <sys/param.h>
6
#ifdef __EMX__
7
#include <sys/types.h>
8
#endif
9
#include <sys/stat.h>
10
#include <sys/time.h>
11
12
#include <signal.h>
13
#include <termios.h>
14
#include <unistd.h>
15
#include <stdlib.h>
16
#include <stdio.h>
17
#include <string.h>
18
19
#define NOSTR ((char *) 0) /* Null string pointer */
20
#define LINESIZE BUFSIZ /* max readable line width */
21
22
23
struct headline {
24
char *l_from;
25
char *l_tty;
26
char *l_date;
27
};
28
29
30
int ishead(char *);
31
void fail(char *, char *);
32
void parse(char *, struct headline *, char *);
33
char *copyin(char *, char **);
34
int isdate(char *);
35
int cmatch(register char *, register char *);
36
char *nextword(register char *, register char *);
37
38
#endif
39
40
41