Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!asuvax!ncar!elroy.jpl.nasa.gov!sdd.hp.com!wuarchive!uunet!mcsun!hp4nl!star.cs.vu.nl!ast@cs.vu.nl From: ast@cs.vu.nl (Andy Tanenbaum) Newsgroups: comp.os.minix Subject: getopt Message-ID: <10118@star.cs.vu.nl> Date: 30 May 91 09:45:55 GMT Sender: news@cs.vu.nl Organization: Fac. Wiskunde & Informatica, Vrije Universiteit, Amsterdam Lines: 19 I am trying to figure out what to do with optind, getopt etc. As far as I can determine, the correct behavior is for all programs to explicitly include: int optind; and so on explicitly, but the prototype of getopt goes in unistd.h. Is there anyone who can confirm or deny this? Confirmations or denials should be based on the Truth, not what you think makes sense, as the two are not always compatible. In any event, the Truth shall not conflict with the example in P1003.2 Annex B.7. I don't particular like this, because unistd.h is huge and makes the new compiler barf, but if it must be so, it must be so. Andy Tanenbaum (ast@cs.vu.nl)