Article View: comp.sys.amiga.tech
Article #3306Re: Opening dos.library in C
From: Larry Phillips
Date: Wed, 11 Apr 1990 16:09
Date: Wed, 11 Apr 1990 16:09
20 lines
1382 bytes
1382 bytes
In <205@mtiame.oz>, jep@mtiame.oz (Jesper Peterson) writes: >The dos.library is opened for you by the C startup code, so just leap >straight into your dos calls. Apart from it being a bad idea, I don't know >if opening a library twice will cause the machine to crash. You can open a library (in general), as many times as you want. It is done all the time, in that many programs can be opening the same libraries. Opening it twice within one program is only wasteful of time. Of course if you do have a need to open a library twice, for some reason, you should definitely close it twice, too. -larry -- Entomology bugs me. +-----------------------------------------------------------------------+ | // Larry Phillips | | \X/ lphillips@lpami.wimsey.bc.ca -or- uunet!van-bc!lpami!lphillips | | COMPUSERVE: 76703,4322 -or- 76703.4322@compuserve.com | +-----------------------------------------------------------------------+
Technical Details
Message-ID:
<1396@lpami.wimsey.bc.ca>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!van-bc!Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!van-bc! From: lphillips@lpami.wimsey.bc.ca (Larry Phillips) Newsgroups: comp.sys.amiga.tech Subject: Re: Opening dos.library in C Message-ID: <1396@lpami.wimsey.bc.ca> Date: 11 Apr 90 16:09:11 GMT Lines: 20 Return-Path: <lpami!lphillips> To: van-bc!rnews