1 /* 2 * Copyright 2002-2009, Haiku Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT license. 4 * 5 * Authors: 6 * Ingo Weinhold, bonefish@cs.tu-berlin.de. 7 * Axel Dörfler, axeld@pinc-software.de. 8 */ 9 10 #include <string.h> 11 12 #include <KernelExport.h> 13 14 15 extern "C" status_t 16 user_memcpy(void *to, const void *from, size_t size) 17 { 18 memcpy(to, from, size); 19 return B_OK; 20 } 21 22 23 extern "C" ssize_t 24 user_strlcpy(char *to, const char *from, size_t size) 25 { 26 return strlcpy(to, from, size); 27 } 28