Adding upstream version 3.86+dfsg.
[syslinux-debian/hramrach.git] / com32 / lib / strpcpy.c
bloba4fd2a060043b9dee1fdf4d3ffa1f21b0e5ddb21
1 /*
2 * strpcpy.c
4 * strpcpy() - strcpy() which returns a pointer to the final null
5 */
7 #include <string.h>
9 char *strpcpy(char *dst, const char *src)
11 char *q = dst;
12 const char *p = src;
13 char ch;
15 do {
16 *q++ = ch = *p++;
17 } while (ch);
19 return q - 1;