On 29 July 2012 21:15, Martin Sucha <[email protected]> wrote:
>
> Ok, I'll fix the documentation to reflect current implementation of str_cmp 
> and
> str_lcmp.
>

I don't think the new documentation is correct either.

* A string is smaller than another string iff it is shorter or
* has a character with lower value at the first position where
* the strings differ.

The way it's written it implies that a shorter string is always less
than a longer string.
That is not true for the current implementation, which uses
lexicographical ordering.

See 
http://en.wikipedia.org/wiki/Lexicographical_order#Ordering_of_sequences_of_various_lengths

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to