MCPcopy Create free account
hub / github.com/RsyncProject/rsync / poptBitsArgs

Function poptBitsArgs

popt/popt.c:844–861  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

842}
843
844int poptBitsArgs(poptContext con, poptBits *ap)
845{
846 const char ** av;
847 int rc = 0;
848
849 if (con == NULL || ap == NULL || _poptBitsNew(ap) ||
850 con->leftovers == NULL || con->numLeftovers == con->nextLeftover)
851 return POPT_ERROR_NULLARG;
852
853 /* some apps like [like RPM ;-) ] need this NULL terminated */
854 con->leftovers[con->numLeftovers] = NULL;
855
856 for (av = con->leftovers + con->nextLeftover; *av != NULL; av++) {
857 if ((rc = poptBitsAdd(*ap, *av)) != 0)
858 break;
859 }
860 return rc;
861}
862
863int poptSaveBits(poptBits * bitsp,
864 UNUSED(unsigned int argInfo), const char * s)

Callers

nothing calls this directly

Calls 2

_poptBitsNewFunction · 0.85
poptBitsAddFunction · 0.85

Tested by

no test coverage detected