2
* pstrncat.c -- $Id: pstrncat.c,v 1.1 2003/03/08 15:26:47 travo Exp $
3
* strncat that p_mallocs its destination
5
* Copyright (c) 1998. See accompanying LEGAL file for details.
13
p_strncat(const char *s1, const char *s2, size_t n)
16
size_t n1 = strlen(s2);
19
else if (n1<n) n = n1;
20
n1 = s1? strlen(s1) : 0;
22
if (s1) strcpy(d, s1);