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

Function cmp_width

src/ls.c:3874–3880  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3872}
3873
3874static int
3875cmp_width (struct fileinfo const *a, struct fileinfo const *b,
3876 int (*cmp) (char const *, char const *))
3877{
3878 int diff = fileinfo_name_width (a) - fileinfo_name_width (b);
3879 return diff ? diff : cmp (a->name, b->name);
3880}
3881
3882DEFINE_SORT_FUNCTIONS (ctime, cmp_ctime)
3883DEFINE_SORT_FUNCTIONS (mtime, cmp_mtime)

Callers

nothing calls this directly

Calls 2

fileinfo_name_widthFunction · 0.85
cmpFunction · 0.85

Tested by

no test coverage detected