mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00
libc: Integrate strrchr in libc
Change-Id: I3ddc07cb02d73cd7614af7a5b21827aae155f9a0 Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
This commit is contained in:
parent
668afe261d
commit
1a29aba367
3 changed files with 3 additions and 9 deletions
|
@ -27,5 +27,6 @@ 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);
|
||||
|
||||
#endif /* STRING_H */
|
||||
|
|
|
@ -21,7 +21,8 @@ LIBC_SRCS := $(addprefix lib/libc/, \
|
|||
strcmp.c \
|
||||
strlen.c \
|
||||
strncmp.c \
|
||||
strnlen.c)
|
||||
strnlen.c \
|
||||
strrchr.c)
|
||||
|
||||
INCLUDES += -Iinclude/lib/libc \
|
||||
-Iinclude/lib/libc/$(ARCH) \
|
||||
|
|
|
@ -29,12 +29,6 @@
|
|||
* SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#if defined(LIBC_SCCS) && !defined(lint)
|
||||
static char sccsid[] = "@(#)rindex.c 8.1 (Berkeley) 6/4/93";
|
||||
#endif /* LIBC_SCCS and not lint */
|
||||
#include <sys/cdefs.h>
|
||||
__FBSDID("$FreeBSD$");
|
||||
|
||||
#include <stddef.h>
|
||||
#include <string.h>
|
||||
|
||||
|
@ -53,5 +47,3 @@ strrchr(const char *p, int ch)
|
|||
}
|
||||
/* NOTREACHED */
|
||||
}
|
||||
|
||||
__weak_reference(strrchr, rindex);
|
||||
|
|
Loading…
Add table
Reference in a new issue