函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\argv_split.c Create Date:2022-07-27 07:11:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:count_argc

函数原型:static int count_argc(const char *str)

返回类型:int

参数:

类型参数名称
const char *str
14  count等于0
17 str循环
19  was_space = true
20  否则如果was_space
21  was_space = false
22  count自加
26  返回:count
调用者
名称描述
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