mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00

This function scans a string backwards from the end for the first instance of a character. Change-Id: I46b21573ed25a0ff222eac340e1e1fb93b040763 Signed-off-by: Ambroise Vincent <ambroise.vincent@arm.com>
34 lines
955 B
C
34 lines
955 B
C
/*
|
|
* Copyright (c) 2012-2017 Roberto E. Vargas Caballero
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
/*
|
|
* Portions copyright (c) 2018-2019, ARM Limited and Contributors.
|
|
* All rights reserved.
|
|
*/
|
|
|
|
#ifndef STRING_H
|
|
#define STRING_H
|
|
|
|
#include <string_.h>
|
|
|
|
#ifndef NULL
|
|
#define NULL ((void *) 0)
|
|
#endif
|
|
|
|
void *memcpy(void *dst, const void *src, size_t len);
|
|
void *memmove(void *dst, const void *src, size_t len);
|
|
int memcmp(const void *s1, const void *s2, size_t len);
|
|
int strcmp(const char *s1, const char *s2);
|
|
int strncmp(const char *s1, const char *s2, size_t n);
|
|
void *memchr(const void *src, int c, size_t len);
|
|
void *memrchr(const void *src, int c, size_t len);
|
|
char *strchr(const char *s, int c);
|
|
void *memset(void *dst, int val, size_t count);
|
|
size_t strlen(const char *s);
|
|
size_t strnlen(const char *s, size_t maxlen);
|
|
char *strrchr(const char *p, int ch);
|
|
size_t strlcpy(char * dst, const char * src, size_t dsize);
|
|
|
|
#endif /* STRING_H */
|