lib: charset: add u16_str<n>cmp()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Wed, 18 Sep 2019 01:26:29 +0000 (10:26 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 20 Sep 2019 18:09:19 +0000 (20:09 +0200)
commitf8062c963a6285ce04b75570a1beaec27a40aec1
tree628672a36bc0d31d80d260c35a9c0e60480a3a43
parent5a24239c951e8dc3177b63881631868b8d487920
lib: charset: add u16_str<n>cmp()

u16 version of strcmp(): u16_strncmp() works like u16_strcmp() but only
at most n characters (in u16) are compared.
This function will be used in my UEFI secure boot patch.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
include/charset.h
lib/charset.c