Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset bd29f9c9 in mainline for kernel/generic/src/lib/str.c


Ignore:
Timestamp:
2012-07-30T20:01:02Z (9 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master
Children:
542e819, beb9336
Parents:
c15849c (diff), 597b12e (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.
Message:

Merge with mainline

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/lib/str.c

    rc15849c rbd29f9c9  
    456456 *
    457457 * Do a char-by-char comparison of two NULL-terminated strings.
    458  * The strings are considered equal iff they consist of the same
    459  * characters on the minimum of their lengths.
     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.
    460464 *
    461465 * @param s1 First string to compare.
     
    494498 *
    495499 * Do a char-by-char comparison of two NULL-terminated strings.
    496  * The strings are considered equal iff they consist of the same
    497  * characters on the minimum of their lengths and the length limit.
     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.
    498508 *
    499509 * @param s1      First string to compare.
Note: See TracChangeset for help on using the changeset viewer.