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

Function different

src/uniq.c:302–309  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

300 OLDLEN and NEWLEN are their lengths. */
301
302static bool
303different (char *old, char *new, idx_t oldlen, idx_t newlen)
304{
305 if (ignore_case)
306 return oldlen != newlen || memcasecmp (old, new, oldlen);
307 else
308 return oldlen != newlen || memcmp (old, new, oldlen);
309}
310
311/* Output the line in linebuffer LINE to standard output
312 provided that the switches say it should be output.

Callers 1

check_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected