函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:删除前导和尾随空格

函数原型:char *strim(char *s)

返回类型:char

参数:

类型参数名称
char *s
505  size等于strlen(s)
506  如果非size则返回:s
509  end等于ssize减1
510 end大于等于sNote: isspace() must return false for %NUL-terminator ( * end)循环
511  end自减
512  *end加1的和等于'\0'
514  返回:字符串删除空格
调用者
名称描述
rdtgroup_schemata_write
event_inject_write
apparmor_setprocattr
parse_lineFor each domain in this resource we expect to find a series of:* id=mask* separated by ";". The "id" is in decimal, and must match one of* the "id"s for this resource.
event_trigger_regex_write
basenameasename - find the last component of an hname*@name: hname to find the base profile name component of (NOT NULL)* Returns: the tail (base profile name) name component of an hname
aa_split_fqnameaa_split_fqname - split a fqname into a profile and namespace name*@fqname: a full qualified name in namespace profile format (NOT NULL)*@ns_name: pointer to portion of the string containing the ns name (NOT NULL)* Returns: profile name or NULL if one is