hdt: Removing builting sleep support in say
[syslinux.git] / com32 / lib / stpncpy.c
blob0537a56c3147ca3bcfe6c1f7c034c4540dcb86c4
1 /*
2 * stpncpy.c
4 * stpncpy()
5 */
7 #include <string.h>
9 char *stpncpy(char *dst, const char *src, size_t n)
11 char *q = dst;
12 const char *p = src;
13 char ch;
15 while (n--) {
16 *q = ch = *p++;
17 if (!ch)
18 break;
19 q++;
22 return q;