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

Function main

Examples/HttpClientAsyncGet/HttpClientAsyncGet.cpp:151–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

149}
150} // namespace SC
151
152int main(int argc, char** argv)
153{
154 using namespace SC;
155 constexpr auto NumArgsMax = 10;
156 StringSpan argumentStorage[NumArgsMax];
157 CommandLineArguments arguments;
158 if (not arguments.setFromMainArguments(argc, argv, argumentStorage))
159 {
160 return -1;
161 }
162 return SC::saneMain(arguments.values) ? 0 : -1;
163}

Callers

nothing calls this directly

Calls 2

fromNullTerminatedFunction · 0.85
saneMainFunction · 0.70

Tested by

no test coverage detected