| 95 | } |
| 96 | |
| 97 | const char *next_sopt(const char *p, unsigned *i) |
| 98 | { |
| 99 | unsigned int len = 1; |
| 100 | for (p = next_opt(p, i, &len); p; p = next_opt(p, i, &len)) { |
| 101 | if (p[0] != '-') |
| 102 | break; |
| 103 | } |
| 104 | return p; |
| 105 | } |
| 106 | |
| 107 | /* Avoids dependency on err.h or ccan/err */ |
| 108 | #ifndef failmsg |