MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / main

Function main

Examples/SaneHttpGet/SaneHttpGet.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85} // namespace SC
86
87int main(int argc, char** argv)
88{
89 using namespace SC;
90 constexpr auto NumArgsMax = 10;
91 StringSpan argumentStorage[NumArgsMax];
92 CommandLineArguments arguments;
93 if (not arguments.setFromMainArguments(argc, argv, argumentStorage))
94 {
95 return -1;
96 }
97 return SC::saneMain(arguments.values) ? 0 : -1;

Callers

nothing calls this directly

Calls 2

fromNullTerminatedFunction · 0.85
saneMainFunction · 0.70

Tested by

no test coverage detected