
24 Apr
2019
24 Apr
'19
8:36 p.m.
On 4/24/19 8:30 AM, AKASHI Takahiro wrote:
u16_strncmp() works like u16_strcmp() but only at most n characters (in u16) are compared. This function will be used in a later patch.
Signed-off-by: AKASHI Takahiro takahiro.akashi@linaro.org
The only usage of u16_strncmp() is in patch 3. u16_strcmp() is not used at all.
In patch 3 'memcmp(var_name16, L"BOOT", 8)' will do the job.
I am not sure if in other cases we wouldn't prefer to compare Unicode codepoints instead of u16.
So I suggest to skip patches 1 and 2 and use memcmp() in patch 3.
Best regards
Heinrich