Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:scripts\dtc\libfdt\fdt_ro.c Create Date:2022-07-28 06:18:36
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fdt_stringlist_contains

Proto:int fdt_stringlist_contains(const char *strlist, int listlen, const char *str)

Type:int

Parameter:

TypeParameterName
const char *strlist
intlistlen
const char *str
683  len = strlen(str)
686  When listlen >= len cycle
687  If memcmp(str, strlist, len + 1) == 0 Then Return 1
689  p = memchr(strlist, '\0', listlen)
690  If Not p Then Return 0
692  listlen -= p - strlist + 1
693  strlist = p + 1
695  Return 0