Changeset 1772e6d in mainline for boot/generic/src/str.c


Ignore:
Timestamp:
2012-07-30T21:34:04Z (12 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f80fd8c
Parents:
597b12e
Message:

Update documentation for str_cmp and str_lcmp.

This is a modified version of formulation suggested by Jiri Zarevucky.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/generic/src/str.c

    r597b12e r1772e6d  
    357357 * and both strings consist of the same sequence of characters.
    358358 *
    359  * A string is smaller than another string iff it is shorter or
    360  * has a character with lower value at the first position where
    361  * the strings differ.
     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.
    362363 *
    363364 * @param s1 First string to compare.
    364365 * @param s2 Second string to compare.
    365366 *
    366  * @return 0 if the strings are equal, -1 if first is smaller,
    367  *         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.
    368369 *
    369370 */
Note: See TracChangeset for help on using the changeset viewer.