uprf: We don't have to implement it ourselves but can use strncasecmp()
[mmh] / h / prototypes.h
1 /*
2 ** prototypes.h -- various prototypes
3 */
4
5 /*
6 ** missing system prototypes
7 */
8 #ifndef HAVE_TERMCAP_H
9 extern int tgetent(char *bp, char *name);
10 extern int tgetnum(char *id);
11 extern int tgetflag(char *id);
12 extern char *tgetstr(char *id, char **area);
13 extern char *tgoto(char *cm, int destcol, int destline);
14 extern int tputs(char *cp, int affcnt, int (*outc) (int));
15 #endif
16
17 /*
18 ** prototype from config.h
19 */
20 char *etcpath(char *);
21
22 /*
23 ** prototypes from the nmh subroutine library
24 */
25 void adios(char *, char *, ...) NORETURN;
26 void admonish(char *, char *, ...);
27 void advertise(char *, char *, char *, va_list);
28 void advise(char *, char *, ...);
29 void ambigsw(char *, struct swit *);
30 char **brkstring(char *, char *, char *);
31 int is_native_charset(char *);
32 char *concat(char *, ...);
33 int context_del(char *);
34 char *context_find(char *);
35 void context_read(void);
36 void context_replace(char *, char *);
37 void context_save(void);
38 void cpydata(int, int, char *, char *);
39 void cpydgst(int, int, char *, char *);
40 int decode_rfc2047(char *, char *, size_t);
41 void discard(FILE *);
42 int default_done(int);
43 char *expandfol(char *);
44 char *expanddir(char *);
45 int ext_hook(char *, char *, char *);
46 int folder_addmsg(struct msgs **, char *, int, int, int, int, char *);
47 int folder_delmsgs(struct msgs *, int);
48 void folder_free(struct msgs *);
49 struct msgs *folder_read(char *);
50 struct msgs *folder_realloc(struct msgs *, int, int);
51 int gans(char *, struct swit *);
52 char **getans(char *, struct swit *);
53 int getanswer(char *);
54 char **getarguments(char *, int, char **, int);
55 char *get_charset();
56 char *getcpy(char *);
57 char *getcurfol(void);
58 char *getdeffol(void);
59 int lkclose(int, char*);
60 int lkfclose(FILE *, char *);
61 FILE *lkfopen(char *, char *);
62 int lkopen(char *, int, mode_t);
63 int m_atoi(char *);
64 char *m_backup(char *);
65 int m_convert(struct msgs *, char *);
66 char *m_draft(char *);
67 int m_getfld(int, unsigned char *, unsigned char *, int, FILE *);
68 int m_gmprot(void);
69 char *m_name(int);
70 int m_putenv(char *, char *);
71 char *m_mktemp(const char *, int *, FILE **);
72 char *m_mktemp2(const char *, const char *, int *, FILE **);
73 void thisisanmbox(FILE *);
74 int makedir(char *);
75 char *norm_charmap(char *);
76 char *new_fs(char *, char *);
77 int pidwait(pid_t, int);
78 int pidstatus(int, FILE *, char *);
79 void print_help(char *, struct swit *, int);
80 void print_sw(char *, struct swit *, char *, FILE *);
81 void print_version(char *);
82 void push(void);
83 char *pwd(void);
84 char *mhbasename(char *);
85 void readconfig(struct node **, FILE *, char *, int);
86 int seq_addmsg(struct msgs *, char *, int, int, int);
87 int seq_addsel(struct msgs *, char *, int, int);
88 char *seq_bits(struct msgs *);
89 int seq_delmsg(struct msgs *, char *, int);
90 int seq_delsel(struct msgs *, char *, int, int);
91 int seq_getnum(struct msgs *, char *);
92 char *seq_list(struct msgs *, char *);
93 int seq_nameok(unsigned char *);
94 void seq_print(struct msgs *, char *);
95 void seq_printall(struct msgs *);
96 void seq_read(struct msgs *);
97 void seq_save(struct msgs *);
98 void seq_setcur(struct msgs *, int);
99 void seq_setprev(struct msgs *);
100 void seq_setunseen(struct msgs *, int);
101 int showfile(char **, char *);
102 int smatch(char *, struct swit *);
103 char *snprintb(char *, size_t, unsigned, char *);
104 int stringdex(char *, char *);
105 char *toabsdir(char *);
106 char *trim(unsigned char *);
107 char *trimcpy(unsigned char *);
108 int unputenv(char *);
109 int uprf(char *, char *);
110 int vfgets(FILE *, char **);
111 char *write_charset_8bit(void);
112
113 int mh_strcasecmp(const char *s1, const char *s2);
114
115
116 /*
117 ** prototypes for some routines in uip
118 */
119 int distout(char *, char *, char *);
120 int what_now(char *, int, char *, char *, int, struct msgs *,
121                 char *, char *);
122
123 /*
124 ** from the former mts.h
125 */
126 char *LocalName(void);  /* hostname */
127 char *getusername(void);
128 char *getfullname(void);