MCPcopy Create free account
hub / github.com/F-Stack/f-stack / main

Function main

freebsd/contrib/zstd/examples/simple_compression.c:51–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51int main(int argc, const char** argv)
52{
53 const char* const exeName = argv[0];
54
55 if (argc!=2) {
56 printf("wrong arguments\n");
57 printf("usage:\n");
58 printf("%s FILE\n", exeName);
59 return 1;
60 }
61
62 const char* const inFilename = argv[1];
63
64 char* const outFilename = createOutFilename_orDie(inFilename);
65 compress_orDie(inFilename, outFilename);
66 free(outFilename);
67 return 0;
68}

Callers

nothing calls this directly

Calls 4

compress_orDieFunction · 0.85
createOutFilename_orDieFunction · 0.70
printfFunction · 0.50
freeFunction · 0.50

Tested by

no test coverage detected