Article View: comp.sys.apple2.gno
Article #435Re: Getopt lib not restartable?
From: Jawaid Bazyar
Date: Tue, 05 Jan 1993 21:02
Date: Tue, 05 Jan 1993 21:02
16 lines
1285 bytes
1285 bytes
jamesb@ecst.csuchico.edu (James L. Brookes) writes: >I've been trying to make mkdir restartable, but am having problems. During >the second execution getopt returns EOF (-1) when first called, when it >should be returning an option. I've checked all my code, and there isn't >anything I'm not initializing at run time. So, it seems that there is >something in the getopt lib that prevents it from being restartable... There are three or so global variables that getopt() keeps; you need to initialize those to their proper values in main(). -- Jawaid Bazyar | Ask me about the GNO Multitasking Environment Procyon, Inc. | for the Apple IIgs! bazyar@cs.uiuc.edu | P.O Box 620334 --Apple II Forever!-- | Littleton, CO 80162-0334 (303) 933-4649
Technical Details
Message-ID:
<bazyar.726267775@teal>Path:
arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!csn!teal!bazyarReferences:
<1icoqoINNd02@charnel.ecst.csuchico.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.apple2.gno Path: arc1-ca.pugleaf.net!sparky!uunet!gatech!usenet.ins.cwru.edu!agate!dog.ee.lbl.gov!hellgate.utah.edu!csn!teal!bazyar From: bazyar@teal.csn.org (Jawaid Bazyar) Subject: Re: Getopt lib not restartable? Message-ID: <bazyar.726267775@teal> Sender: news@csn.org (news) Nntp-Posting-Host: teal.csn.org Organization: Colorado SuperNet, Inc. References: <1icoqoINNd02@charnel.ecst.csuchico.edu> Date: Tue, 5 Jan 1993 21:02:55 GMT Lines: 16