libg722_1 0.1.0
lt__strl.h
1/* lt__strl.h -- size-bounded string copying and concatenation
2
3 Copyright (C) 2004, 2006, 2011-2019, 2021-2024 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
10GNU Libltdl is free software; you can redistribute it and/or
11modify it under the terms of the GNU Lesser General Public
12License as published by the Free Software Foundation; either
13version 2 of the License, or (at your option) any later version.
14
15As a special exception to the GNU Lesser General Public License,
16if you distribute this file as part of a program or library that
17is built using GNU Libtool, you may include this file under the
18same distribution terms that you use for the rest of that program.
19
20GNU Libltdl is distributed in the hope that it will be useful,
21but WITHOUT ANY WARRANTY; without even the implied warranty of
22MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23GNU Lesser General Public License for more details.
24
25You should have received a copy of the GNU Lesser General Public
26License along with GNU Libltdl. If not, see <https://www.gnu.org/licenses/>.
27*/
28
29#if !defined LT__STRL_H
30#define LT__STRL_H 1
31
32#if defined LT_CONFIG_H
33# include LT_CONFIG_H
34#else
35# include <config.h>
36#endif
37
38#include <string.h>
39#include "lt_system.h"
40
41#if !defined HAVE_STRLCAT
42# define strlcat(dst,src,dstsize) lt_strlcat(dst,src,dstsize)
43LT_SCOPE size_t lt_strlcat(char *dst, const char *src, const size_t dstsize);
44#endif /* !defined HAVE_STRLCAT */
45
46#if !defined HAVE_STRLCPY
47# define strlcpy(dst,src,dstsize) lt_strlcpy(dst,src,dstsize)
48LT_SCOPE size_t lt_strlcpy(char *dst, const char *src, const size_t dstsize);
49#endif /* !defined HAVE_STRLCPY */
50
51#endif /*!defined LT__STRL_H*/