Imported Upstream version 0.63.0
[hcoop/debian/courier-authlib.git] / libltdl / libltdl / lt__strl.h
CommitLineData
8d138742
CE
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
9GNU Libltdl is free software; you can redistribute it and/or
10modify it under the terms of the GNU Lesser General Public
11License as published by the Free Software Foundation; either
12version 2 of the License, or (at your option) any later version.
13
14As a special exception to the GNU Lesser General Public License,
15if you distribute this file as part of a program or library that
16is built using GNU Libtool, you may include this file under the
17same distribution terms that you use for the rest of that program.
18
19GNU Libltdl is distributed in the hope that it will be useful,
20but WITHOUT ANY WARRANTY; without even the implied warranty of
21MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22GNU Lesser General Public License for more details.
23
24You should have received a copy of the GNU Lesser General Public
25License along with GNU Libltdl; see the file COPYING.LIB. If not, a
26copy can be downloaded from http://www.gnu.org/licenses/lgpl.html,
27or obtained by writing to the Free Software Foundation, Inc.,
2851 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)
45LT_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)
50LT_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)*/