Blame src/u16_wcsncmp.c

398669
/*******************************************************************/
398669
/*  u16ports: u16 variants of wide character string functions.     */
398669
/*  Copyright (C) 2017  Z. Gilboa                                  */
398669
/*  Released under the Standard MIT License; see COPYING.U16PORTS. */
398669
/*******************************************************************/
398669
398669
#include <stdint.h>
398669
#include <u16ports/u16ports.h>
398669
398669
int u16_wcsncmp(const uint16_t * src, const uint16_t * dst, size_t len)
398669
{
398669
	const uint16_t * lch;
398669
	const uint16_t * rch;
398669
	const uint16_t * cap;
398669
398669
	cap = src + len;
398669
	lch = src;
398669
	rch = dst;
398669
398669
	for (; lch
398669
		(void)0;
398669
398669
	return (lch == cap) ? 0 : *lch - *rch;
398669
}