Changes in kernel/generic/src/lib/str.c [4efeab5:8e893ae] in mainline
- File:
-
- 1 edited
-
kernel/generic/src/lib/str.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/str.c
r4efeab5 r8e893ae 456 456 * 457 457 * Do a char-by-char comparison of two NULL-terminated strings. 458 * The strings are considered equal iff their length is equal 459 * and both strings consist of the same sequence of characters. 460 * 461 * A string is smaller than another string iff it is shorter or 462 * has a character with lower value at the first position where 463 * the strings differ. 458 * The strings are considered equal iff they consist of the same 459 * characters on the minimum of their lengths. 464 460 * 465 461 * @param s1 First string to compare. … … 498 494 * 499 495 * Do a char-by-char comparison of two NULL-terminated strings. 500 * The strings are considered equal iff 501 * min(str_length(s1), max_len) == min(str_length(s2), max_len) 502 * and both strings consist of the same sequence of characters, 503 * up to max_len characters. 504 * 505 * A string is smaller than another string iff it is shorter or 506 * has a character with lower value at the first position where 507 * the strings differ, considering only first max_len characters. 496 * The strings are considered equal iff they consist of the same 497 * characters on the minimum of their lengths and the length limit. 508 498 * 509 499 * @param s1 First string to compare.
Note:
See TracChangeset
for help on using the changeset viewer.
