From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- roms/u-boot-sam460ex/tools/updater/string.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 roms/u-boot-sam460ex/tools/updater/string.c (limited to 'roms/u-boot-sam460ex/tools/updater/string.c') diff --git a/roms/u-boot-sam460ex/tools/updater/string.c b/roms/u-boot-sam460ex/tools/updater/string.c new file mode 100644 index 000000000..efbc47cd9 --- /dev/null +++ b/roms/u-boot-sam460ex/tools/updater/string.c @@ -0,0 +1,11 @@ +#include +#include +#include + +char * strchr(const char * s, int c) +{ + for(; *s != (char) c; ++s) + if (*s == '\0') + return NULL; + return (char *) s; +} -- cgit 1.2.3-korg