root/libltdl/libltdl/lt__argz_.h

/* [previous][next][first][last][top][bottom][index][help] */
   1 /* lt__argz.h -- internal argz interface for non-glibc systems
   2 
   3    Copyright (C) 2004, 2007-2008, 2011-2015 Free Software Foundation,
   4    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 
  10 GNU Libltdl is free software; you can redistribute it and/or
  11 modify it under the terms of the GNU Lesser General Public
  12 License as published by the Free Software Foundation; either
  13 version 2 of the License, or (at your option) any later version.
  14 
  15 As a special exception to the GNU Lesser General Public License,
  16 if you distribute this file as part of a program or library that
  17 is built using GNU Libtool, you may include this file under the
  18 same distribution terms that you use for the rest of that program.
  19 
  20 GNU Libltdl is distributed in the hope that it will be useful,
  21 but WITHOUT ANY WARRANTY; without even the implied warranty of
  22 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  23 GNU Lesser General Public License for more details.
  24 
  25 You should have received a copy of the GNU Lesser General Public
  26 License along with GNU Libltdl; see the file COPYING.LIB.  If not, a
  27 copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
  28 or obtained by writing to the Free Software Foundation, Inc.,
  29 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301  USA
  30 */
  31 
  32 #if !defined LT__ARGZ_H
  33 #define LT__ARGZ_H 1
  34 
  35 #include <stdlib.h>
  36 #define __need_error_t
  37 #include <errno.h>
  38 #include <sys/types.h>
  39 
  40 #if defined LTDL
  41 #  include "lt__glibc.h"
  42 #  include "lt_system.h"
  43 #else
  44 #  define LT_SCOPE
  45 #endif
  46 
  47 #if defined __cplusplus
  48 extern "C" {
  49 #endif
  50 
  51 LT_SCOPE error_t argz_append    (char **pargz, size_t *pargz_len,
  52                                  const char *buf, size_t buf_len);
  53 LT_SCOPE error_t argz_create_sep(const char *str, int delim,
  54                                  char **pargz, size_t *pargz_len);
  55 LT_SCOPE error_t argz_insert    (char **pargz, size_t *pargz_len,
  56                                  char *before, const char *entry);
  57 LT_SCOPE char *  argz_next      (char *argz, size_t argz_len,
  58                                  const char *entry);
  59 LT_SCOPE void    argz_stringify (char *argz, size_t argz_len, int sep);
  60 
  61 #if defined __cplusplus
  62 }
  63 #endif
  64 
  65 #if !defined LTDL
  66 #  undef LT_SCOPE
  67 #endif
  68 
  69 #endif /*!defined LT__ARGZ_H*/

/* [previous][next][first][last][top][bottom][index][help] */