home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!charon.amdahl.com!pacbell.com!mips!spool.mu.edu!umn.edu!csus.edu!netcomsv!terapin!paulk
- From: paulk@terapin.com (Paul Kienitz)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: Using System() when started from Workbench -- path?
- Message-ID: <paulk.0wje@terapin.com>
- Date: 26 Jul 92 18:28:38 GMT
- Article-I.D.: terapin.paulk.0wje
- References: <paulk.0wj4@terapin.com>
- Organization: BBS
- Lines: 8
-
- > for (wext = BADDR(wbclap->cli_CommandDir); wext; wext = BADDR(*wext)) {
- > if (!(mext = AllocP(2 * sizeof(BPTR))))
- > break;
-
-
- oops -- I thought I expanded all the private macros in that snippet
- of code for copying a path, but I missed one. "AllocP(foo)" means
- "AllocMem(foo, MEMF_PUBLIC)".
-