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