sigh, vasnprintf changed in gnulib
[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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 #endif
31
32 #if defined(_cplusplus)
33 extern "C" {
34 #endif
35
36 error_t argz_append     (char **pargz, size_t *pargz_len,
37                          const char *buf, size_t buf_len);
38 error_t argz_create_sep (const char *str, int delim,
39                          char **pargz, size_t *pargz_len);
40 error_t argz_insert     (char **pargz, size_t *pargz_len,
41                          char *before, const char *entry);
42 char *  argz_next       (char *argz, size_t argz_len, const char *entry);
43 void    argz_stringify  (char *argz, size_t argz_len, int sep);
44
45 #if defined(_cplusplus)
46 }
47 #endif
48
49 #endif /*!defined(LT__ARGZ_H)*/