Changed type of name argument to m_getfld() from unsigned char *
[mmh] / h / prototypes.h
1
2 /*
3  * prototypes.h -- various prototypes
4  */
5
6 /*
7  * missing system prototypes
8  */
9 #if ! defined(HAVE_TERMCAP_H) && ! defined (HAVE_NCURSES_TERMCAP_H)
10   extern int tgetent (char *bp, char *name);
11   extern int tgetnum (char *id);
12   extern int tgetflag (char *id);
13   extern char *tgetstr (char *id, char **area);
14   extern char *tgoto (char *cm, int destcol, int destline);
15   extern int tputs (char *cp, int affcnt, int (*outc) (int));
16 #endif
17
18 /*
19  * prototype from config.h
20  */
21 char *etcpath(char *);
22
23 /*
24  * prototypes from the nmh subroutine library
25  */
26 void adios (char *, char *, ...) NORETURN;
27 void admonish (char *, char *, ...);
28 void advertise (char *, char *, char *, va_list);
29 void advise (char *, char *, ...);
30 void ambigsw (char *, struct swit *);
31 int atooi(char *);
32 char **brkstring (char *, char *, char *);
33 int check_charset (char *, int);
34 int client(char *, char *, char *, int, int);
35 void closefds(int);
36 char *concat (char *, ...);
37 int context_del (char *);
38 char *context_find (char *);
39 int context_foil (char *);
40 void context_read (void);
41 void context_replace (char *, char *);
42 void context_save (void);
43 char *copy (char *, char *);
44 char **copyip (char **, char **, int);
45 void cpydata (int, int, char *, char *);
46 void cpydgst (int, int, char *, char *);
47 int decode_rfc2047 (char *, char *, size_t);
48 void discard (FILE *);
49 int default_done (int);
50 void escape_display_name (char *, size_t);
51 void escape_local_part (char *, size_t);
52 int ext_hook(char *, char *, char *);
53 int fdcompare (int, int);
54 int folder_addmsg (struct msgs **, char *, int, int, int, int, char *);
55 int folder_delmsgs (struct msgs *, int, int);
56 void folder_free (struct msgs *);
57 int folder_pack (struct msgs **, int);
58 struct msgs *folder_read (char *);
59 struct msgs *folder_realloc (struct msgs *, int, int);
60 int gans (char *, struct swit *);
61 char **getans (char *, struct swit *);
62 #ifdef READLINE_SUPPORT
63 char **getans_via_readline (char *, struct swit *);
64 #endif /* READLINE_SUPPORT */
65 int getanswer (char *);
66 char **getarguments (char *, int, char **, int);
67 char *get_charset(void);
68 char *getcpy (char *);
69 char *getfolder(int);
70 int lkclose(int, char*);
71 int lkfclose(FILE *, char *);
72 FILE *lkfopen(char *, char *);
73 int lkopen(char *, int, mode_t);
74 int m_atoi (char *);
75 char *m_backup (char *);
76 int m_convert (struct msgs *, char *);
77 char *m_draft (char *, char *, int, int *);
78 void m_eomsbr (int (*)(int));
79 int m_getfld (int, unsigned char[NAMESZ], unsigned char *, int, FILE *);
80 int m_gmprot (void);
81 char *m_maildir (char *);
82 char *m_mailpath (char *);
83 char *m_name (int);
84 int m_putenv (char *, char *);
85 int m_rand (unsigned char *, size_t);
86 char *m_mktemp(const char *, int *, FILE **);
87 char *m_mktemp2(const char *, const char *, int *, FILE **);
88 void m_unknown(FILE *);
89 int makedir (char *);
90 char *message_id (time_t, int);
91 char *nmh_getpass(const char *);
92 char *norm_charmap(char *);
93 char *new_fs (char *, char *, char *);
94 char *path(char *, int);
95 int peekc(FILE *ib);
96 int pidwait (pid_t, int);
97 int pidstatus (int, FILE *, char *);
98 char *pluspath(char *);
99 void print_help (char *, struct swit *, int);
100 void print_sw (char *, struct swit *, char *, FILE *);
101 void print_version (char *);
102 void push (void);
103 char *pwd (void);
104 char *r1bindex(char *, int);
105 void readconfig (struct node **, FILE *, char *, int);
106 int refile (char **, char *);
107 void ruserpass(char *, char **, char **);
108 int remdir (char *);
109 int seq_addmsg (struct msgs *, char *, int, int, int);
110 int seq_addsel (struct msgs *, char *, int, int);
111 char *seq_bits (struct msgs *);
112 int seq_delmsg (struct msgs *, char *, int);
113 int seq_delsel (struct msgs *, char *, int, int);
114 int seq_getnum (struct msgs *, char *);
115 char *seq_list (struct msgs *, char *);
116 int seq_nameok (unsigned char *);
117 void seq_print (struct msgs *, char *);
118 void seq_printall (struct msgs *);
119 void seq_read (struct msgs *);
120 void seq_save (struct msgs *);
121 void seq_setcur (struct msgs *, int);
122 void seq_setprev (struct msgs *);
123 void seq_setunseen (struct msgs *, int);
124 int showfile (char **, char *);
125 int smatch(char *, struct swit *);
126 char *snprintb (char *, size_t, unsigned, char *);
127 int ssequal (char *, char *);
128 int stringdex (char *, char *);
129 char *trimcpy (unsigned char *);
130 int unputenv (char *);
131 int uprf (char *, char *);
132 int vfgets (FILE *, char **);
133 char *write_charset_8bit (void);
134
135 int mh_strcasecmp (const char *s1, const char *s2);
136 int strncasecmp (const char *s1, const char *s2, size_t n);
137
138
139 /*
140  * some prototypes for address parsing system
141  * (others are in addrsbr.h)
142  */
143 char *LocalName(int);
144 char *SystemName(void);
145
146 /*
147  * prototypes for some routines in uip
148  */
149 int annotate (char *, char *, char *, int, int, int, int);
150 void annolist(char *, char *, char *, int);
151 void annopreserve(int);
152 void clear_screen(void);
153 void m_pclose(void);
154 int make_intermediates(char *);
155 int mhl(int, char **);
156 int mhlsbr(int, char **, FILE *(*)(char *));
157 int distout (char *, char *, char *);
158 void replout (FILE *, char *, char *, struct msgs *, int,
159         int, char *, char *, char *, int);
160 int sc_hardcopy(void);
161 int sc_length(void);
162 int sc_width(void);
163 int build_form (char *, char *, int *, char *, char *, char *, char *,
164                 char *, char *);
165 int sendsbr (char **, int, char *, struct stat *, int, char *, int);
166 int SOprintf (char *, ...);
167 int what_now (char *, int, int, char *, char *,
168         int, struct msgs *, char *, int, char *, int);
169 int WhatNow(int, char **);
170 int writeBase64aux(FILE *, FILE *);
171 int writeBase64 (unsigned char *, size_t, unsigned char *);