Newsgroups: comp.lang.c Path: utzoo!henry From: henry@utzoo.uucp (Henry Spencer) Subject: Re: Using getopt to parse multi-argument options Message-ID: <1989Jan19.192946.15825@utzoo.uucp> Organization: U of Toronto Zoology References: <3652@phri.UUCP> <1989Jan16.023712.29002@utzoo.uucp> <3141@ttrdc.UUCP> Date: Thu, 19 Jan 89 19:29:46 GMT In article <3141@ttrdc.UUCP> levy@ttrdc.UUCP (Daniel R. Levy) writes: >Actually, what Roy had in mind IS possible. Yes it violates the syntax >standard, but if one is masochistic enough to WANT that, it's doable through >suitable abuse of optind... This is not portable; it assumes a specific implementation of getopt. Unless things have changed, the getopt(3) documentation makes no promise that user changes to optind will be reflected back into getopt's innards. It probably works in the existing implementations, but that's not the same thing. -- Allegedly heard aboard Mir: "A | Henry Spencer at U of Toronto Zoology toast to comrade Van Allen!!" | uunet!attcan!utzoo!henry henry@zoo.toronto.edu