Changes in kernel/generic/src/lib/str.c [1772e6d:4efeab5] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/lib/str.c
r1772e6d r4efeab5 459 459 * and both strings consist of the same sequence of characters. 460 460 * 461 * A string S1 is less than another string S2 if it has a character with 462 * lower value at the first character position where the strings differ. 463 * If the strings differ in length, the shorter one is treated as if 464 * padded by characters with a value of zero. 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. 465 464 * 466 465 * @param s1 First string to compare. 467 466 * @param s2 Second string to compare. 468 467 * 469 * @return 0 if the strings are equal, -1 if the first is less than the second,470 * 1 if the second is less than the first.468 * @return 0 if the strings are equal, -1 if first is smaller, 469 * 1 if second smaller. 471 470 * 472 471 */ … … 504 503 * up to max_len characters. 505 504 * 506 * A string S1 is less than another string S2 if it has a character with 507 * lower value at the first character position where the strings differ. 508 * If the strings differ in length, the shorter one is treated as if 509 * padded by characters with a value of zero. Only the first max_len 510 * characters are considered. 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. 511 508 * 512 509 * @param s1 First string to compare. … … 514 511 * @param max_len Maximum number of characters to consider. 515 512 * 516 * @return 0 if the strings are equal, -1 if the first is less than the second,517 * 1 if the second is less than the first.513 * @return 0 if the strings are equal, -1 if first is smaller, 514 * 1 if second smaller. 518 515 * 519 516 */
Note:
See TracChangeset
for help on using the changeset viewer.