home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!noc.near.net!hri.com!spool.mu.edu!uwm.edu!rutgers!cbmvax!jesup
- From: jesup@cbmvax.commodore.com (Randell Jesup)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: AmigaDos Assign command
- Message-ID: <38158@cbmvax.commodore.com>
- Date: 28 Dec 92 19:18:10 GMT
- References: <ianm.03r4@laghey.UUCP> <37922@cbmvax.commodore.com> <1992Dec21.185417.21889@jato.jpl.nasa.gov>
- Reply-To: jesup@cbmvax.commodore.com (Randell Jesup)
- Organization: Commodore, West Chester, PA
- Lines: 24
-
- jdickson@jato.jpl.nasa.gov (Jeff Dickson) writes:
- >In article <37922@cbmvax.commodore.com> jesup@cbmvax.commodore.com (Randell Jesup) writes:
- >>
- >> while (1) {
- >> dp = GetDeviceProc(path,dp);
- >> if (!dp)
- >> { /* getdevproc freed dp for us */
- > ^^^^^^^^^^^^^^^^^^^^^^^^^^
- >
- > How? Before getdevproc returned dp?
-
- Read the autodocs. When making multiple calls to GetDeviceProc, the
- end of the list is signaled by GetDeviceProc returning NULL. You pass in your
- old dp (a) so it can decide what to give you next, and (b) so it can free it
- if you've hit the end. If you have the autodocs, always check them before
- posting questions about routines - it saves everyone (including you) time and
- trouble.
-
- --
- To be or not to be = 0xff
- -
- Randell Jesup, Jack-of-quite-a-few-trades, Commodore Engineering.
- {uunet|rutgers}!cbmvax!jesup, jesup@cbmvax.cbm.commodore.com BIX: rjesup
- Disclaimer: Nothing I say is anything other than my personal opinion.
-