Aymeric Wibo 05c9a0158f libc: Add strverscmp(3) and versionsort(3)
Add a strverscmp(3) function to libc, a GNU extension I implemented by
reading its glibc manual page. It orders strings following a much more
natural ordering (e.g. "ent1 < ent2 < ent10" as opposed to
"ent1 < ent10 < ent2" with strcmp(3)'s lexicographic ordering).

Also add versionsort(3) for use as scandir(3)'s compar argument.

Update manual page for scandir(3) and add one for strverscmp(3).

Reviewed by:	pstef, gbe, kib
MFC after:	1 week
Differential Revision: https://reviews.freebsd.org/D35807
2022-08-25 03:29:03 +03:00
..
2022-06-13 21:37:34 +01:00
2021-11-05 13:51:42 +02:00
2020-05-15 11:58:01 +00:00
2017-12-08 22:06:18 +00:00
2022-06-13 18:35:38 +01:00
2020-05-12 18:17:57 +00:00
2017-11-27 17:18:31 +00:00
2018-12-23 20:51:13 +00:00
2021-02-23 20:08:10 +02:00
2020-02-02 19:45:12 +00:00
2021-11-07 16:20:15 +01:00
2021-07-15 19:40:28 +03:00