diff options
Diffstat (limited to 'platform/common/include/plat/string.h')
| -rw-r--r-- | platform/common/include/plat/string.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/platform/common/include/plat/string.h b/platform/common/include/plat/string.h new file mode 100644 index 00000000..ab09f4ec --- /dev/null +++ b/platform/common/include/plat/string.h @@ -0,0 +1,39 @@ +/* + * Copyright (c) 2018 Western Digital Corporation or its affiliates. + * + * Authors: + * Atish Patra <[email protected]> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#ifndef __STRING_H__ +#define __STRING_H__ + +#include <sbi/sbi_types.h> + +int strcmp(const char *a, const char *b); + +size_t strlen(const char *str); + +size_t strnlen(const char *str, size_t count); + +char *strcpy(char *dest,const char *src); + +char *strncpy(char *dest, const char *src, size_t count); + +char *strchr(const char *s, int c); + +char *strrchr(const char *s, int c); + +void *memset(void *s,int c,size_t count); + +void *memcpy(void *dest, const void *src, size_t count); + +void *memmove(void *dest,const void *src, size_t count); + +int memcmp(const void *s1,const void *s2, size_t count); + +void *memchr(const void *s, int c, size_t count); + +#endif |
