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

Function initialize_ordering_vector

src/ls.c:3995–4000  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3993/* Set up SORTED_FILE to point to the in-use entries in CWD_FILE, in order. */
3994
3995static void
3996initialize_ordering_vector (void)
3997{
3998 for (idx_t i = 0; i < cwd_n_used; i++)
3999 sorted_file[i] = &cwd_file[i];
4000}
4001
4002/* Cache values based on attributes global to all files. */
4003

Callers 1

sort_filesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected