Lines Matching defs:len
155 size_t len;
159 len = strlen(path);
160 while (len > 0 && path[len-1] == c)
161 path[--len] = '\0';
164 int util_replace_whitespace(const char *str, char *to, size_t len)
169 len = strnlen(str, len);
170 while (len && isspace(str[len-1]))
171 len--;
175 while ((i < len) && isspace(str[i]))
179 while (i < len) {
199 int len;
213 len = utf8_encoded_valid_unichar(&str[i]);
214 if (len > 1) {
215 i += len;
239 * @len: maximum size of the output string, which may be
247 _public_ int udev_util_encode_string(const char *str, char *str_enc, size_t len)
249 return encode_devnode_name(str, str_enc, len);