mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-19 02:54:24 +00:00

Change-Id: I4f58bb4660078c9bc76d2826c90b2fa711719a3e Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
43 lines
1.5 KiB
C
43 lines
1.5 KiB
C
/*
|
|
* Copyright (c) 2012-2017 Roberto E. Vargas Caballero
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
/*
|
|
* Portions copyright (c) 2018, ARM Limited and Contributors.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef _STRING_H
|
|
#define _STRING_H
|
|
|
|
#include <string_.h>
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void *) 0)
|
|
#endif
|
|
|
|
extern void *memcpy(void * restrict s1, const void * restrict s2, size_t n);
|
|
extern void *memmove(void *s1, const void *s2, size_t n);
|
|
extern char *strcpy(char * restrict s1, const char * restrict s2);
|
|
extern char *strncpy(char * restrict s1, const char * restrict s2, size_t n);
|
|
extern char *strcat(char * restrict s1, const char * restrict s2);
|
|
extern char *strncat(char * restrict s1, const char * restrict s2, size_t n);
|
|
extern int memcmp(const void *s1, const void *s2, size_t n);
|
|
extern int strcmp(const char *s1, const char *s2);
|
|
extern int strcoll(const char *s1, const char *s2);
|
|
extern int strncmp(const char *s1, const char *s2, size_t n);
|
|
extern size_t strxfrm(char * restrict s1, const char * restrict s2, size_t n);
|
|
extern void *memchr(const void *s, int c, size_t n);
|
|
extern char *strchr(const char *s, int c);
|
|
extern size_t strcspn(const char *s1, const char *s2);
|
|
extern char *strpbrk(const char *s1, const char *s2);
|
|
extern char *strrchr(const char *s, int c);
|
|
extern size_t strspn(const char *s1, const char *s2);
|
|
extern char *strstr(const char *s1, const char *s2);
|
|
extern char *strtok(char * restrict s1, const char * restrict s2);
|
|
extern void *memset(void *s, int c, size_t n);
|
|
extern char *strerror(int errnum);
|
|
extern size_t strlen(const char *s);
|
|
|
|
#endif
|