| 56 | } |
| 57 | |
| 58 | const char *first_lopt(unsigned *i, unsigned *len) |
| 59 | { |
| 60 | const char *p; |
| 61 | for (p = first_opt(i, len); p; p = next_opt(p, i, len)) { |
| 62 | if (p[0] == '-') { |
| 63 | /* Skip leading "-" */ |
| 64 | (*len)--; |
| 65 | p++; |
| 66 | break; |
| 67 | } |
| 68 | } |
| 69 | return p; |
| 70 | } |
| 71 | |
| 72 | const char *next_lopt(const char *p, unsigned *i, unsigned *len) |
| 73 | { |