Blame src/u16_wcschr.c

bcbd18
/*******************************************************************/
bcbd18
/*  u16ports: u16 variants of wide character string functions.     */
12ee61
/*  Copyright (C) 2017  SysDeer Technologies, LLC                  */
bcbd18
/*  Released under the Standard MIT License; see COPYING.U16PORTS. */
bcbd18
/*******************************************************************/
bcbd18
bcbd18
#include <stdint.h>
bcbd18
#include <u16ports/u16ports.h>
bcbd18
bcbd18
uint16_t * u16_wcschr(const uint16_t * src, uint16_t code)
bcbd18
{
bcbd18
	if (!code)
bcbd18
		return (uint16_t *)src + u16_wcslen(src);
bcbd18
bcbd18
	for (; *src; src++)
bcbd18
		if (*src == code)
bcbd18
			return (uint16_t *)src;
bcbd18
bcbd18
	return 0;
bcbd18
}