MCPcopy Create free account
hub / github.com/coreutils/coreutils / cmp_ctime

Function cmp_ctime

src/ls.c:3793–3800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3791 { return dirfirst_check (a, b, rev_strcmp_##key_name); }
3792
3793static int
3794cmp_ctime (struct fileinfo const *a, struct fileinfo const *b,
3795 int (*cmp) (char const *, char const *))
3796{
3797 int diff = timespec_cmp (get_stat_ctime (&b->stat),
3798 get_stat_ctime (&a->stat));
3799 return diff ? diff : cmp (a->name, b->name);
3800}
3801
3802static int
3803cmp_mtime (struct fileinfo const *a, struct fileinfo const *b,

Callers

nothing calls this directly

Calls 1

cmpFunction · 0.85

Tested by

no test coverage detected