Home
last modified time | relevance | path

Searched refs:maxlen (Results 1 – 3 of 3) sorted by relevance

/DragonOS-0.1.7/kernel/src/libs/
Dstring.c22 long strnlen(const char *src, unsigned long maxlen) in strnlen() argument
28 while (src[__res] != '\0' && __res < maxlen) in strnlen()
99 long strnlen_user(const char *src, unsigned long maxlen) in strnlen_user() argument
107 return size <= maxlen ? size : maxlen; in strnlen_user()
/DragonOS-0.1.7/kernel/src/common/
Dstring.h32 long strnlen(const char *src, unsigned long maxlen);
53 long strnlen_user(const char *src, unsigned long maxlen);
/DragonOS-0.1.7/docs/kernel/core_api/
Dkernel_api.md459 #### `long strnlen(const char *src, unsigned long maxlen)`
463 &emsp;&emsp;测量并返回字符串长度。当字符串长度大于maxlen时,返回maxlen
471 **maxlen**
475 #### `long strnlen_user(const char *src, unsigned long maxlen)` argument
479 &emsp;&emsp;测量并返回字符串长度。当字符串长度大于maxlen时,返回maxlen
489 **maxlen**