blob: 8c2ec0c05e4e064d53371163d6a374a76984a47a [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Olaf Heringdecd3002005-08-08 13:24:38 +10002#ifndef _PPC_BOOT_STRING_H_
3#define _PPC_BOOT_STRING_H_
Olaf Hering8afe31c2005-10-28 17:46:37 -07004#include <stddef.h>
Olaf Heringdecd3002005-08-08 13:24:38 +10005
6extern char *strcpy(char *dest, const char *src);
7extern char *strncpy(char *dest, const char *src, size_t n);
8extern char *strcat(char *dest, const char *src);
David Gibson0ae0b542007-08-28 14:52:57 +10009extern char *strchr(const char *s, int c);
Rob Herringa54b81e2018-03-01 08:57:40 -060010extern char *strrchr(const char *s, int c);
Olaf Heringdecd3002005-08-08 13:24:38 +100011extern int strcmp(const char *s1, const char *s2);
David Gibson0ae0b542007-08-28 14:52:57 +100012extern int strncmp(const char *s1, const char *s2, size_t n);
Olaf Heringdecd3002005-08-08 13:24:38 +100013extern size_t strlen(const char *s);
14extern size_t strnlen(const char *s, size_t count);
15
16extern void *memset(void *s, int c, size_t n);
17extern void *memmove(void *dest, const void *src, unsigned long n);
18extern void *memcpy(void *dest, const void *src, unsigned long n);
David Gibson9b4b8fe2007-10-12 12:36:20 +100019extern void *memchr(const void *s, int c, size_t n);
Olaf Heringdecd3002005-08-08 13:24:38 +100020extern int memcmp(const void *s1, const void *s2, size_t n);
21
22#endif /* _PPC_BOOT_STRING_H_ */