Debian Codegraph @

libinetutils/argcv.h

raw
1 /*
2 Copyright (C) 2001-2026 Free Software Foundation, Inc.
3
4 This file is part of GNU Inetutils.
5
6 GNU Inetutils is free software: you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation, either version 3 of the License, or (at
9 your option) any later version.
10
11 GNU Inetutils is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see `http://www.gnu.org/licenses/'. */
18
19 #ifndef _ARGCV_H
20 # define _ARGCV_H 1
21
22 # include <stdio.h>
23 # include <stdlib.h>
24 # include <unistd.h>
25 # include <string.h>
26
27 # ifdef __cplusplus
28 extern "C"
29 {
30 # endif
31
32 extern int argcv_get (const char *command, const char *delim,
33 int *argc, char ***argv);
34 extern int argcv_string (int argc, char **argv, char **string);
35 extern int argcv_free (int argc, char **argv);
36
37 # ifdef __cplusplus
38 }
39 # endif
40
41 #endif /* _ARGCV_H */