]> git.baikalelectronics.ru Git - uboot.git/commit
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)
commitffbf20ac253cea6ed9bd1ddebc7f37c45796fb0f
tree628672a36bc0d31d80d260c35a9c0e60480a3a43
parent01d07bf0781074d9bc15c09b514b8df5edcf08c8
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