Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:strim - Removes leading and trailing whitespace from @s.*@s: The string to be stripped.* Note that the first trailing whitespace is replaced with a %NUL-terminator* in the given string @s. Returns a pointer to the first non-whitespace* character in @s.

Proto:char *strim(char *s)

Type:char

Parameter:

TypeParameterName
char *s
505  size = strlen(s)
506  If Not size Then Return s
509  end = s + size - 1
510  When end >= s && Note: isspace() must return false for %NUL-terminator ( * end) cycle
511  end--
512  *(end + 1) = '\0'
514  Return skip_spaces - Removes leading whitespace from @str.*@str: The string to be stripped.* Returns a pointer to the first non-whitespace character in @str.
Caller
NameDescribe
rdtgroup_schemata_write
event_inject_write
apparmor_setprocattr