| 842 | } |
| 843 | |
| 844 | int 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 | |
| 863 | int poptSaveBits(poptBits * bitsp, |
| 864 | UNUSED(unsigned int argInfo), const char * s) |
nothing calls this directly
no test coverage detected