diff options
| author | Laurent Bercot <ska-skaware@skarnet.org> | 2025-10-17 20:55:48 +0000 |
|---|---|---|
| committer | Laurent Bercot <ska-skaware@skarnet.org> | 2025-10-17 20:55:48 +0000 |
| commit | 1d769dd630932b265cd15bb2e5b97459766e3125 (patch) | |
| tree | d76bd3467c5b0388b6fecfcf435f85897b8a27aa /src/libstddjb/str_bcmp.c | |
| parent | 96b537f42695da1b865588baf591fdfcae76bd41 (diff) | |
| download | skalibs-1d769dd630932b265cd15bb2e5b97459766e3125.tar.gz | |
Add string qsort/bsearch cmp functions and avltreeb wrappers
Diffstat (limited to 'src/libstddjb/str_bcmp.c')
| -rw-r--r-- | src/libstddjb/str_bcmp.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libstddjb/str_bcmp.c b/src/libstddjb/str_bcmp.c new file mode 100644 index 0000000..e2248e1 --- /dev/null +++ b/src/libstddjb/str_bcmp.c @@ -0,0 +1,10 @@ +/* ISC license. */ + +#include <string.h> + +#include <skalibs/bytestr.h> + +int str_bcmp (void const *a, void const *b) +{ + return strcmp((char const *)a, *(char const *const *)b) ; +} |
