From 775470756b54ff2a2a55241a2e22e6244548ce5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 23 Feb 2004 05:13:31 +0000 Subject: [PATCH] On second thought, also removed user_strcpy(). Copied over the function description of user_strlcpy() from x86/arch_cpu.h to this file. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6697 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/core/vm/vm.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/kernel/core/vm/vm.c b/src/kernel/core/vm/vm.c index 760fad9770..3db68ad6c6 100755 --- a/src/kernel/core/vm/vm.c +++ b/src/kernel/core/vm/vm.c @@ -2154,12 +2154,15 @@ user_memcpy(void *to, const void *from, size_t size) } -int -user_strcpy(char *to, const char *from) -{ - return arch_cpu_user_strcpy(to, from, &thread_get_current_thread()->fault_handler); -} - +/** \brief Copies at most (\a size - 1) characters from the string in \a from to + * the string in \a to, NULL-terminating the result. + * + * \param to Pointer to the destination C-string. + * \param from Pointer to the source C-string. + * \param size Size in bytes of the string buffer pointed to by \a to. + * + * \return strlen(\a from). + */ int user_strlcpy(char *to, const char *from, size_t size)