more work on the strl* functions under linux
FossilOrigin-Name: e6111510769f196d0a0f3c3ae2ad6aad56c2dafdaf16d2f61fb7b011f08c1d73
This commit is contained in:
parent
82ad153c44
commit
bfe84ee73a
1 changed files with 4 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
|||
#if defined __GNU_LIBRARY__ || defined __GLIBC__
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <string.h>
|
||||
|
||||
#ifndef strlcat
|
||||
|
||||
/* $OpenBSD: strlcat.c,v 1.18 2016/10/16 17:37:39 dtucker Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -74,8 +74,9 @@ strlcat(char *dst, const char *src, size_t dsize)
|
|||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
*/
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef strlcpy
|
||||
/*
|
||||
* Copy string src to buffer dst of size dsize. At most dsize-1
|
||||
* chars will be copied. Always NUL terminates (unless dsize == 0).
|
||||
|
@ -105,5 +106,4 @@ strlcpy(char *dst, const char *src, size_t dsize)
|
|||
|
||||
return(src - osrc - 1); /* count does not include NUL */
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue