mirror of
https://github.com/hashcat/hashcat.git
synced 2024-12-17 12:18:24 +00:00
19 lines
352 B
C
19 lines
352 B
C
/**
|
|
* Author......: See docs/credits.txt
|
|
* License.....: MIT
|
|
*/
|
|
|
|
#include "common.h"
|
|
#include "induct.h"
|
|
|
|
int sort_by_mtime (const void *p1, const void *p2)
|
|
{
|
|
const char **f1 = (const char **) p1;
|
|
const char **f2 = (const char **) p2;
|
|
|
|
struct stat s1; stat (*f1, &s1);
|
|
struct stat s2; stat (*f2, &s2);
|
|
|
|
return s2.st_mtime - s1.st_mtime;
|
|
}
|