xref: /linux/arch/powerpc/boot/string.h (revision 498495dba268b20e8eadd7fe93c140c68b6cc9d2)
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _PPC_BOOT_STRING_H_
3 #define _PPC_BOOT_STRING_H_
4 #include <stddef.h>
5 
6 extern char *strcpy(char *dest, const char *src);
7 extern char *strncpy(char *dest, const char *src, size_t n);
8 extern char *strcat(char *dest, const char *src);
9 extern char *strchr(const char *s, int c);
10 extern int strcmp(const char *s1, const char *s2);
11 extern int strncmp(const char *s1, const char *s2, size_t n);
12 extern size_t strlen(const char *s);
13 extern size_t strnlen(const char *s, size_t count);
14 
15 extern void *memset(void *s, int c, size_t n);
16 extern void *memmove(void *dest, const void *src, unsigned long n);
17 extern void *memcpy(void *dest, const void *src, unsigned long n);
18 extern void *memchr(const void *s, int c, size_t n);
19 extern int memcmp(const void *s1, const void *s2, size_t n);
20 
21 #endif	/* _PPC_BOOT_STRING_H_ */
22