forked from luck/tmp_suning_uos_patched
83af58f806
Add performance-optimized versions of some string functions. Signed-off-by: Helge Deller <deller@gmx.de> Tested-by: Sven Schnelle <svens@stackframe.org>
27 lines
632 B
C
27 lines
632 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#ifndef _PA_STRING_H_
|
|
#define _PA_STRING_H_
|
|
|
|
#define __HAVE_ARCH_MEMSET
|
|
extern void * memset(void *, int, size_t);
|
|
|
|
#define __HAVE_ARCH_MEMCPY
|
|
void * memcpy(void * dest,const void *src,size_t count);
|
|
|
|
#define __HAVE_ARCH_STRLEN
|
|
extern size_t strlen(const char *s);
|
|
|
|
#define __HAVE_ARCH_STRCPY
|
|
extern char *strcpy(char *dest, const char *src);
|
|
|
|
#define __HAVE_ARCH_STRNCPY
|
|
extern char *strncpy(char *dest, const char *src, size_t count);
|
|
|
|
#define __HAVE_ARCH_STRCAT
|
|
extern char *strcat(char *dest, const char *src);
|
|
|
|
#define __HAVE_ARCH_MEMSET
|
|
extern void *memset(void *, int, size_t);
|
|
|
|
#endif
|