Changeset da68871a in mainline for boot/generic/src/str.c
- Timestamp:
- 2012-08-08T08:46:22Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 30c0826
- Parents:
- bc216a0 (diff), 1d01cca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/src/str.c
rbc216a0 rda68871a 354 354 * 355 355 * Do a char-by-char comparison of two NULL-terminated strings. 356 * The strings are considered equal iff they consist of the same 357 * characters on the minimum of their lengths. 356 * The strings are considered equal iff their length is equal 357 * and both strings consist of the same sequence of characters. 358 * 359 * A string S1 is less than another string S2 if it has a character with 360 * lower value at the first character position where the strings differ. 361 * If the strings differ in length, the shorter one is treated as if 362 * padded by characters with a value of zero. 358 363 * 359 364 * @param s1 First string to compare. 360 365 * @param s2 Second string to compare. 361 366 * 362 * @return 0 if the strings are equal, -1 if first is smaller,363 * 1 if second smaller.367 * @return 0 if the strings are equal, -1 if the first is less than the second, 368 * 1 if the second is less than the first. 364 369 * 365 370 */
Note:
See TracChangeset
for help on using the changeset viewer.