Changeset 0e60443 in mainline for uspace/lib/c/test/main.c

Timestamp:
2019-02-08T12:55:28Z (5 years ago)
Author:
Matthieu Riolo <matthieu.riolo@…>
Children:
d64303b
Parents:
bc694b0
git-author:
Matthieu Riolo <matthieu.riolo@…> (2019-01-12 18:51:12)
git-committer:
Matthieu Riolo <matthieu.riolo@…> (2019-02-08 12:55:28)
Message:

Correcting test of the comparison function

This commit removes the old file description with qsort
and gnome sort. Furthermore it corrects how the return
value from the comparison function gets handled. In the
previous version the comparison function must have returned
-1, 0 or 1. The updated version will accept values smaller
than -1 too. This change was needed since the documentation
does not specify it and because all other *cmp functions
tend to return values smaller than -1 (as example strcmp())

(No files)

Note: See TracChangeset for help on using the changeset viewer.