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
This commit is contained in:
parent
f4d747d77b
commit
775470756b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user