Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\string.c Create Date:2022-07-28 06:00:34
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:strncasecmp - Case insensitive, length-limited string comparison*@s1: One string*@s2: The other string*@len: the maximum number of characters to compare

Proto:int strncasecmp(const char *s1, const char *s2, size_t len)

Type:int

Parameter:

TypeParameterName
const char *s1
const char *s2
size_tlen
48  If Not len Then Return 0
51  Do
52  c1 = s1++
53  c2 = s2++
54  If Not c1 || Not c2 Then Break
56  If c1 == c2 Then Continue
58  c1 = tolower(c1)
59  c2 = tolower(c2)
60  If c1 != c2 Then Break
62  When --len cycle
63  Return c1 - c2
Caller
NameDescribe
kdb_parsebp