mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 18:11:56 +00:00
66d83ab32a
Merging the mmu and non-mmu directories we ended up with duplicate implementations of memcpy(). One is a little more optimized for the >= 68020 case, but that can easily be inserted into a single implementation of memcpy(). Clean up the exporting of this symbol too, otherwise we end up exporting it twice on a no-mmu build. Signed-off-by: Greg Ungerer <gerg@uclinux.org> Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
23 lines
490 B
C
23 lines
490 B
C
/*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file COPYING in the main directory of this archive
|
|
* for more details.
|
|
*/
|
|
|
|
#define __IN_STRING_C
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/string.h>
|
|
|
|
char *strcpy(char *dest, const char *src)
|
|
{
|
|
return __kernel_strcpy(dest, src);
|
|
}
|
|
EXPORT_SYMBOL(strcpy);
|
|
|
|
char *strcat(char *dest, const char *src)
|
|
{
|
|
return __kernel_strcpy(dest + __kernel_strlen(dest), src);
|
|
}
|
|
EXPORT_SYMBOL(strcat);
|