1 /*
2 ** strl.c - strlXXX functions
3 **
4 ** Copyright (c) 2000 Peter Eriksson <pen@lysator.liu.se>
5 **
6 ** This program is free software; you can redistribute it and/or
7 ** modify it as you wish - as long as you don't claim that you wrote
8 ** it.
9 **
10 ** This program is distributed in the hope that it will be useful,
11 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
12 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 */
14 
15 #ifndef PLIB_STRL_H
16 #define PLIB_STRL_H
17 
18 #include "plib/config.h"
19 
20 #ifndef HAVE_STRLCPY
21 size_t
22 strlcpy(char *dst,
23 	const char *src,
24 	size_t dstsize);
25 #endif
26 
27 #ifndef HAVE_STRLCAT
28 size_t
29 strlcat(char *dst,
30 	const char *src,
31 	size_t dstsize);
32 #endif
33 
34 #ifndef HAVE_STRLNCPY
35 size_t
36 strlncpy(char *dst,
37 	 const char *src,
38 	 size_t dstsize,
39 	 size_t maxsrclen);
40 #endif
41 
42 #ifndef HAVE_STRLNCAT
43 size_t
44 strlncat(char *dst,
45 	 const char *src,
46 	 size_t dstsize,
47 	 size_t maxsrclen);
48 #endif
49 
50 #endif
51