|
|
b96f72 |
/*******************************************************************/
|
|
|
b96f72 |
/* u16ports: u16 variants of wide character string functions. */
|
|
|
b96f72 |
/* Copyright (C) 2017 Z. Gilboa */
|
|
|
b96f72 |
/* Released under the Standard MIT License; see COPYING.U16PORTS. */
|
|
|
b96f72 |
/*******************************************************************/
|
|
|
b96f72 |
|
|
|
b96f72 |
#include <stdint.h>
|
|
|
b96f72 |
#include <u16ports/u16ports.h>
|
|
|
b96f72 |
|
|
|
b96f72 |
size_t u16_wcslen(const uint16_t * src)
|
|
|
b96f72 |
{
|
|
|
b96f72 |
const uint16_t * wch = src;
|
|
|
b96f72 |
|
|
|
b96f72 |
for (; *wch; )
|
|
|
b96f72 |
wch++;
|
|
|
b96f72 |
|
|
|
b96f72 |
return wch - src;
|
|
|
b96f72 |
}
|