MCPcopy Create free account
hub / github.com/ElementsProject/lightning / find_opt

Function find_opt

tests/fuzz/libfuzz.c:148–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

146 * this is also good for attaching a debugger to! */
147#ifndef FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION
148static size_t find_opt(char *argv[], const char *opt)
149{
150 for (size_t i = 1; argv[i]; i++) {
151 if (streq(argv[i], opt))
152 return i;
153 }
154 return 0;
155}
156
157int main(int argc, char *argv[])
158{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected