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

Function needs_quoting

src/ls.c:3301–3308  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3299}
3300
3301static bool
3302needs_quoting (char const *name)
3303{
3304 char test[2];
3305 size_t len = quotearg_buffer (test, sizeof test , name, -1,
3306 filename_quoting_options);
3307 return *name != *test || strlen (name) != len;
3308}
3309
3310/* Add a file to the current table of files.
3311 Verify that the file exists, and print an error message if it does not.

Callers 1

gobble_fileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected