Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:count_argc

Proto:static int count_argc(const char *str)

Type:int

Parameter:

TypeParameterName
const char *str
14  count = 0
17  When str cycle
19  was_space = true
20  Else if was_space Then
21  was_space = false
22  count++
26  Return count
Caller
NameDescribe
argv_splitargv_split - split a string at whitespace, returning an argv*@gfp: the GFP mask used to allocate memory*@str: the string to be split*@argcp: returned argument count* Returns an array of pointers to strings which are split out from*@str