Lines Matching defs:str
861 * skip_spaces - Removes leading whitespace from @str.
862 * @str: The string to be stripped.
864 * Returns a pointer to the first non-whitespace character in @str.
866 char *skip_spaces(const char *str)
868 while (isspace(*str))
869 ++str;
870 return (char *)str;
965 * @str: string to match with
967 * Returns index of @str in the @array or -EINVAL, just like match_string().
978 int __sysfs_match_string(const char * const *array, size_t n, const char *str)
987 if (sysfs_streq(item, str))
997 * @str: The string to operate on.
1001 * Replaces the each @old character with a @new one in the given string @str.
1003 * Return: pointer to the string @str itself.
1005 char *strreplace(char *str, char old, char new)
1007 char *s = str;
1012 return str;