Annotation of parser3/src/lib/ltdl/libltdl/lt__strl.h, revision 1.1
1.1 ! moko 1: /* lt__strl.h -- size-bounded string copying and concatenation
! 2:
! 3: Copyright (C) 2004, 2006 Free Software Foundation, Inc.
! 4: Written by Bob Friesenhahn, 2004
! 5:
! 6: NOTE: The canonical source of this file is maintained with the
! 7: GNU Libtool package. Report bugs to bug-libtool@gnu.org.
! 8:
! 9: GNU Libltdl is free software; you can redistribute it and/or
! 10: modify it under the terms of the GNU Lesser General Public
! 11: License as published by the Free Software Foundation; either
! 12: version 2 of the License, or (at your option) any later version.
! 13:
! 14: As a special exception to the GNU Lesser General Public License,
! 15: if you distribute this file as part of a program or library that
! 16: is built using GNU Libtool, you may include this file under the
! 17: same distribution terms that you use for the rest of that program.
! 18:
! 19: GNU Libltdl is distributed in the hope that it will be useful,
! 20: but WITHOUT ANY WARRANTY; without even the implied warranty of
! 21: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 22: GNU Lesser General Public License for more details.
! 23:
! 24: You should have received a copy of the GNU Lesser General Public
! 25: License along with GNU Libltdl; see the file COPYING.LIB. If not, a
! 26: copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
! 27: or obtained by writing to the Free Software Foundation, Inc.,
! 28: 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
! 29: */
! 30:
! 31: #if !defined(LT__STRL_H)
! 32: #define LT__STRL_H 1
! 33:
! 34: #if defined(LT_CONFIG_H)
! 35: # include LT_CONFIG_H
! 36: #else
! 37: # include <config.h>
! 38: #endif
! 39:
! 40: #include <string.h>
! 41: #include "lt_system.h"
! 42:
! 43: #if !defined(HAVE_STRLCAT)
! 44: # define strlcat(dst,src,dstsize) lt_strlcat(dst,src,dstsize)
! 45: LT_SCOPE size_t lt_strlcat(char *dst, const char *src, const size_t dstsize);
! 46: #endif /* !defined(HAVE_STRLCAT) */
! 47:
! 48: #if !defined(HAVE_STRLCPY)
! 49: # define strlcpy(dst,src,dstsize) lt_strlcpy(dst,src,dstsize)
! 50: LT_SCOPE size_t lt_strlcpy(char *dst, const char *src, const size_t dstsize);
! 51: #endif /* !defined(HAVE_STRLCPY) */
! 52:
! 53: #endif /*!defined(LT__STRL_H)*/
E-mail: