Meg's Mirrors
zig
about
heads
tags
log
tree
search
Search
zig
lib
libc
musl
src
dirent
versionsort.c
pretty
plain
permalink
blame
history
•
8 lines
•
179 B
1
#define _GNU_SOURCE
2
#include <string.h>
3
#include <dirent.h>
4
5
int versionsort(const struct dirent **a, const struct dirent **b)
6
{
7
	return strverscmp((*a)->d_name, (*b)->d_name);
8
}