add getopt reset support
authorRich Felker <dalias@aerifal.cx>
Mon, 1 Oct 2012 00:00:38 +0000 (20:00 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 1 Oct 2012 00:00:38 +0000 (20:00 -0400)
based on proposed patches by Daniel Cegiełka, with minor changes:
- use a weak symbol for optreset so it doesn't clash with namespace
- also reset optpos (position in multi-option arg like -lR)
- also make getopt_long support reset


No differences found