Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Olaf Hering | decd300 | 2005-08-08 13:24:38 +1000 | [diff] [blame] | 2 | #ifndef _PPC_BOOT_STRING_H_ |
| 3 | #define _PPC_BOOT_STRING_H_ |
Olaf Hering | 8afe31c | 2005-10-28 17:46:37 -0700 | [diff] [blame] | 4 | #include <stddef.h> |
Olaf Hering | decd300 | 2005-08-08 13:24:38 +1000 | [diff] [blame] | 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); |
David Gibson | 0ae0b54 | 2007-08-28 14:52:57 +1000 | [diff] [blame] | 9 | extern char *strchr(const char *s, int c); |
Rob Herring | a54b81e | 2018-03-01 08:57:40 -0600 | [diff] [blame] | 10 | extern char *strrchr(const char *s, int c); |
Olaf Hering | decd300 | 2005-08-08 13:24:38 +1000 | [diff] [blame] | 11 | extern int strcmp(const char *s1, const char *s2); |
David Gibson | 0ae0b54 | 2007-08-28 14:52:57 +1000 | [diff] [blame] | 12 | extern int strncmp(const char *s1, const char *s2, size_t n); |
Olaf Hering | decd300 | 2005-08-08 13:24:38 +1000 | [diff] [blame] | 13 | extern size_t strlen(const char *s); |
| 14 | extern size_t strnlen(const char *s, size_t count); |
| 15 | |
| 16 | extern void *memset(void *s, int c, size_t n); |
| 17 | extern void *memmove(void *dest, const void *src, unsigned long n); |
| 18 | extern void *memcpy(void *dest, const void *src, unsigned long n); |
David Gibson | 9b4b8fe | 2007-10-12 12:36:20 +1000 | [diff] [blame] | 19 | extern void *memchr(const void *s, int c, size_t n); |
Olaf Hering | decd300 | 2005-08-08 13:24:38 +1000 | [diff] [blame] | 20 | extern int memcmp(const void *s1, const void *s2, size_t n); |
| 21 | |
| 22 | #endif /* _PPC_BOOT_STRING_H_ */ |