MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / getopt

Function getopt

samples/common/getopt.c:535–547  ·  view source on GitHub ↗

* getopt -- * Parse argc/argv argument vector. * * [eventually this will replace the BSD getopt] */

Source from the content-addressed store, hash-verified

533 * [eventually this will replace the BSD getopt]
534 */
535int getopt(int nargc, char* const* nargv, char const* options)
536{
537
538 /*
539 * We don't pass FLAG_PERMUTE to getopt_internal() since
540 * the BSD getopt(3) (unlike GNU) has never done this.
541 *
542 * Furthermore, since many privileged programs call getopt()
543 * before dropping privileges it makes sense to keep things
544 * as simple (and bug-free) as possible.
545 */
546 return (getopt_internal(nargc, nargv, options, NULL, NULL, 0));
547}
548#endif /* REPLACE_GETOPT */
549
550/*

Callers

nothing calls this directly

Calls 1

getopt_internalFunction · 0.85

Tested by

no test coverage detected