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

Function dest_info_init

src/copy.c:1442–1453  ·  view source on GitHub ↗

Initialize the hash table implementing a set of F_triple entries corresponding to destination files. */

Source from the content-addressed store, hash-verified

1440/* Initialize the hash table implementing a set of F_triple entries
1441 corresponding to destination files. */
1442extern void
1443dest_info_init (struct cp_options *x)
1444{
1445 x->dest_info
1446 = hash_initialize (DEST_INFO_INITIAL_CAPACITY,
1447 NULL,
1448 triple_hash,
1449 triple_compare,
1450 triple_free);
1451 if (! x->dest_info)
1452 xalloc_die ();
1453}
1454
1455/* Initialize the hash table implementing a set of F_triple entries
1456 corresponding to source files listed on the command line. */

Callers 3

mainFunction · 0.85
mainFunction · 0.85
do_copyFunction · 0.85

Calls 1

xalloc_dieFunction · 0.85

Tested by

no test coverage detected