root/libltdl/libltdl/lt__strl.h

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

INCLUDED FROM


   1 /* lt__strl.h -- size-bounded string copying and concatenation
   2 
   3    Copyright (C) 2004, 2006, 2011-2019, 2021-2022 Free Software
   4    Foundation, Inc.
   5    Written by Bob Friesenhahn, 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__STRL_H
  33 #define LT__STRL_H 1
  34 
  35 #if defined LT_CONFIG_H
  36 #  include LT_CONFIG_H
  37 #else
  38 #  include <config.h>
  39 #endif
  40 
  41 #include <string.h>
  42 #include "lt_system.h"
  43 
  44 #if !defined HAVE_STRLCAT
  45 #  define strlcat(dst,src,dstsize) lt_strlcat(dst,src,dstsize)
  46 LT_SCOPE size_t lt_strlcat(char *dst, const char *src, const size_t dstsize);
  47 #endif /* !defined HAVE_STRLCAT */
  48 
  49 #if !defined HAVE_STRLCPY
  50 #  define strlcpy(dst,src,dstsize) lt_strlcpy(dst,src,dstsize)
  51 LT_SCOPE size_t lt_strlcpy(char *dst, const char *src, const size_t dstsize);
  52 #endif /* !defined HAVE_STRLCPY */
  53 
  54 #endif /*!defined LT__STRL_H*/

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