libg722_1 0.1.0
lt__argz_.h
1/* lt__argz.h -- internal argz interface for non-glibc systems
2
3 Copyright (C) 2004, 2007-2008, 2011-2019, 2021-2024 Free Software
4 Foundation, Inc.
5 Written by Gary V. Vaughan, 2004
6
7 NOTE: The canonical source of this file is maintained with the
8 GNU Libtool package. Report bugs to bug-libtool@gnu.org.
9
10GNU Libltdl is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2 of the License, or (at your option) any later version.
14
15As a special exception to the GNU Lesser General Public License,
16if you distribute this file as part of a program or library that
17is built using GNU Libtool, you may include this file under the
18same distribution terms that you use for the rest of that program.
19
20GNU Libltdl is distributed in the hope that it will be useful,
21but WITHOUT ANY WARRANTY; without even the implied warranty of
22MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23GNU Lesser General Public License for more details.
24
25You should have received a copy of the GNU Lesser General Public
26License along with GNU Libltdl. If not, see <https://www.gnu.org/licenses/>.
27*/
28
29#if !defined LT__ARGZ_H
30#define LT__ARGZ_H 1
31
32#include <stdlib.h>
33#define __need_error_t
34#include <errno.h>
35#include <sys/types.h>
36
37#if defined LTDL
38# include "lt__glibc.h"
39# include "lt_system.h"
40#else
41# define LT_SCOPE
42#endif
43
44#if defined __cplusplus
45extern "C" {
46#endif
47
48LT_SCOPE error_t argz_append (char **pargz, size_t *pargz_len,
49 const char *buf, size_t buf_len);
50LT_SCOPE error_t argz_create_sep(const char *str, int delim,
51 char **pargz, size_t *pargz_len);
52LT_SCOPE error_t argz_insert (char **pargz, size_t *pargz_len,
53 char *before, const char *entry);
54LT_SCOPE char * argz_next (char *argz, size_t argz_len,
55 const char *entry);
56LT_SCOPE void argz_stringify (char *argz, size_t argz_len, int sep);
57
58#if defined __cplusplus
59}
60#endif
61
62#if !defined LTDL
63# undef LT_SCOPE
64#endif
65
66#endif /*!defined LT__ARGZ_H*/