1 | /* GNU Mailutils -- a suite of utilities for electronic mail
|
---|
2 | Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
|
---|
3 |
|
---|
4 | This library is free software; you can redistribute it and/or
|
---|
5 | modify it under the terms of the GNU Lesser General Public
|
---|
6 | License as published by the Free Software Foundation; either
|
---|
7 | version 2 of the License, or (at your option) any later version.
|
---|
8 |
|
---|
9 | This library is distributed in the hope that it will be useful,
|
---|
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | Lesser General Public License for more details.
|
---|
13 |
|
---|
14 | You should have received a copy of the GNU Lesser General Public
|
---|
15 | License along with this library; if not, write to the Free Software
|
---|
16 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */
|
---|
17 |
|
---|
18 | #ifndef _ARGCV_H
|
---|
19 | #define _ARGCV_H 1
|
---|
20 |
|
---|
21 | #include <stdio.h>
|
---|
22 | #include <stdlib.h>
|
---|
23 | #include <unistd.h>
|
---|
24 | #include <string.h>
|
---|
25 |
|
---|
26 | #ifdef __cplusplus
|
---|
27 | extern "C" {
|
---|
28 | #endif
|
---|
29 |
|
---|
30 | #ifndef __P
|
---|
31 | # if defined PROTOTYPES || (defined __STDC__ && __STDC__)
|
---|
32 | # define __P(args) args
|
---|
33 | # else
|
---|
34 | # define __P(args) ()
|
---|
35 | # endif
|
---|
36 | #endif /*__P */
|
---|
37 |
|
---|
38 | extern int argcv_get __P ((const char *command, const char *delim,
|
---|
39 | const char* cmnt,
|
---|
40 | int *argc, char ***argv));
|
---|
41 | extern int argcv_string __P ((int argc, char **argv, char **string));
|
---|
42 | extern int argcv_free __P ((int argc, char **argv));
|
---|
43 | extern int argcv_unescape_char __P((int c));
|
---|
44 | extern int argcv_escape_char __P((int c));
|
---|
45 |
|
---|
46 | #ifdef __cplusplus
|
---|
47 | }
|
---|
48 | #endif
|
---|
49 |
|
---|
50 | #endif /* _ARGCV_H */
|
---|