opnsense-src/lib/libc/tests/string
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
..
Makefile libc: Add strverscmp(3) and versionsort(3) 2022-08-25 03:29:03 +03:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
memcmp_test.c
memset_s_test.c Improve standard compliance for memset_s() and abort_handler_s(). 2017-08-12 15:18:17 +00:00
stpncpy_test.c Have stpncpy tests ask the kernel for the page size 2022-04-07 16:08:37 +01:00
strerror_test.c
strverscmp_test.c libc: Add strverscmp(3) and versionsort(3) 2022-08-25 03:29:03 +03:00
strxfrm_test.c
wcscasecmp_test.c
wcscoll_test.c Fix strcoll_l disagreeing with strxfrm by reworking the forward order case in 2017-04-16 19:12:07 +00:00
wcsnlen_test.c Have stpncpy tests ask the kernel for the page size 2022-04-07 16:08:37 +01:00