Changes in uspace/lib/c/generic/str.c [1772e6d:dce39b4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/str.c
r1772e6d rdce39b4 431 431 * and both strings consist of the same sequence of characters. 432 432 * 433 * A string S1 is less than another string S2 if it has a character with 434 * lower value at the first character position where the strings differ. 435 * If the strings differ in length, the shorter one is treated as if 436 * padded by characters with a value of zero. 433 * A string is smaller than another string iff it is shorter or 434 * has a character with lower value at the first position where 435 * the strings differ. 437 436 * 438 437 * @param s1 First string to compare. 439 438 * @param s2 Second string to compare. 440 439 * 441 * @return 0 if the strings are equal, -1 if the first is less than the second,442 * 1 if the second is less than the first.440 * @return 0 if the strings are equal, -1 if first is smaller, 441 * 1 if second smaller. 443 442 * 444 443 */ … … 476 475 * up to max_len characters. 477 476 * 478 * A string S1 is less than another string S2 if it has a character with 479 * lower value at the first character position where the strings differ. 480 * If the strings differ in length, the shorter one is treated as if 481 * padded by characters with a value of zero. Only the first max_len 482 * characters are considered. 477 * A string is smaller than another string iff it is shorter or 478 * has a character with lower value at the first position where 479 * the strings differ, considering only first max_len characters. 483 480 * 484 481 * @param s1 First string to compare. … … 486 483 * @param max_len Maximum number of characters to consider. 487 484 * 488 * @return 0 if the strings are equal, -1 if the first is less than the second,489 * 1 if the second is less than the first.485 * @return 0 if the strings are equal, -1 if first is smaller, 486 * 1 if second smaller. 490 487 * 491 488 */
Note:
See TracChangeset
for help on using the changeset viewer.