1/* 2** Copyright 2004, Axel D��rfler, axeld@pinc-software.de. All rights reserved. 3** Distributed under the terms of the MIT License. 4*/ 5 6 7#include <sys/types.h> 8#include <string.h> 9 10 11/* This is not a POSIX function, but since BeOS exports it, we need to, as well. */ 12 13char * 14stpcpy(char *dest, char const *src) 15{ 16 while ((*dest++ = *src++) != '\0') 17 ; 18 19 return dest - 1; 20} 21 22