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

Function xstrcoll

src/ls.c:3733–3747  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3731static jmp_buf failed_strcoll;
3732
3733static int
3734xstrcoll (char const *a, char const *b)
3735{
3736 int diff;
3737 errno = 0;
3738 diff = strcoll (a, b);
3739 if (errno)
3740 {
3741 error (0, errno, _("cannot compare file names %s and %s"),
3742 quote_n (0, a), quote_n (1, b));
3743 set_exit_status (false);
3744 longjmp (failed_strcoll, 1);
3745 }
3746 return diff;
3747}
3748
3749/* Comparison routines for sorting the files. */
3750

Callers

nothing calls this directly

Calls 1

set_exit_statusFunction · 0.85

Tested by

no test coverage detected