MCPcopy Create free account
hub / github.com/RsyncProject/rsync / main

Function main

trimslash.c:32–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30int copy_unsafe_links = 0;
31
32int
33main(int argc, char **argv)
34{
35 int i;
36
37 if (argc <= 1) {
38 fprintf(stderr, "trimslash: needs at least one argument\n");
39 return 1;
40 }
41
42 for (i = 1; i < argc; i++) {
43 trim_trailing_slashes(argv[i]); /* modify in place */
44 printf("%s\n", argv[i]);
45 }
46 return 0;
47}

Callers

nothing calls this directly

Calls 1

trim_trailing_slashesFunction · 0.85

Tested by

no test coverage detected