headers/bsd: Add sys/queue.h.
[haiku.git] / src / system / libroot / posix / string / stpcpy.c
blob13f29cb6802357136aedb285af3be14677bf0a52
1 /*
2 ** Copyright 2004, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3 ** Distributed under the terms of the Haiku License.
4 */
7 #include <sys/types.h>
8 #include <string.h>
11 /* This is not a POSIX function, but since BeOS exports it, we need to, as well. */
13 char *
14 stpcpy(char *dest, char const *src)
16 while ((*dest++ = *src++) != '\0')
19 return dest - 1;