aboutsummaryrefslogtreecommitdiffstats
path: root/roms/u-boot-sam460ex/tools/updater/string.c
blob: efbc47cd95528e535a0d887b2c5f1ca4e37beaaf (plain)
1
2
3
4
5
6
7
8
9
10
11
#include <linux/types.h>
#include <linux/string.h>
#include <malloc.h>

char * strchr(const char * s, int c)
{
	for(; *s != (char) c; ++s)
		if (*s == '\0')
			return NULL;
	return (char *) s;
}