*** empty log message ***
[gnulib.git] / lib / argz_.h
1 /* lt__argz.h -- internal argz interface for non-glibc systems
2    Copyright (C) 2004 Free Software Foundation, Inc.
3    Originally by Gary V. Vaughan  <gary@gnu.org>
4
5    NOTE: The canonical source of this file is maintained with the
6    GNU Libtool package.  Report bugs to bug-libtool@gnu.org.
7
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2, or (at your option)
11    any later version.
12
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License along
19    with this program; if not, write to the Free Software Foundation,
20    Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
21
22 #if !defined(LT__ARGZ_H)
23 #define LT__ARGZ_H 1
24
25 #include <stdlib.h>
26 #include <sys/types.h>
27
28 #if defined(LTDL)
29 #  include "lt__glibc.h"
30 #  include "lt_system.h"
31 #else
32 #  define LT_SCOPE
33 #endif
34
35 #if defined(_cplusplus)
36 extern "C" {
37 #endif
38
39 LT_SCOPE error_t argz_append    (char **pargz, size_t *pargz_len,
40                                  const char *buf, size_t buf_len);
41 LT_SCOPE error_t argz_create_sep(const char *str, int delim,
42                                  char **pargz, size_t *pargz_len);
43 LT_SCOPE error_t argz_insert    (char **pargz, size_t *pargz_len,
44                                  char *before, const char *entry);
45 LT_SCOPE char *  argz_next      (char *argz, size_t argz_len,
46                                  const char *entry);
47 LT_SCOPE void    argz_stringify (char *argz, size_t argz_len, int sep);
48
49 #if defined(_cplusplus)
50 }
51 #endif
52
53 #if !defined(LTDL)
54 #  undef LT_SCOPE
55 #endif
56
57 #endif /*!defined(LT__ARGZ_H)*/