On Sunday 29 July 2012 16:16:26 Jiří Zárevúcky wrote: > On 29 July 2012 15:30, Martin Sucha <[email protected]> wrote: > > I found out that str_cmp's behaviour does not match its documentation. > > The difference is when the length of the two strings is not equal: > > http://trac.helenos.org/browser/mainline/uspace/lib/c/generic/str.c#L427 > [...] > > Common sense tells me that two strings are equal iff they consist of > the same sequence of characters. If one string is longer, it can't be > considered the same. > I can't imagine any scenario in which someone would need an ordering > that is inconsistent with the intuitive notion of string equality.
Ok, I'll fix the documentation to reflect current implementation of str_cmp and str_lcmp. Regards, Martin Sucha _______________________________________________ HelenOS-devel mailing list [email protected] http://lists.modry.cz/cgi-bin/listinfo/helenos-devel
