From: AndrewJ Newsgroups: comp.os.msdos.djgpp Subject: Re: Some minor questions... Message-ID: References: X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 19 Date: Tue, 12 Sep 2000 00:43:47 GMT NNTP-Posting-Host: 24.42.120.18 X-Complaints-To: abuse AT home DOT net X-Trace: news3.rdc1.on.home.com 968719427 24.42.120.18 (Mon, 11 Sep 2000 17:43:47 PDT) NNTP-Posting-Date: Mon, 11 Sep 2000 17:43:47 PDT Organization: Excite AT Home - The Leader in Broadband To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 11 Sep 2000 14:48:07 GMT, Damian Yerrick wrote: >>You should check the return values of all functions (within reason), regardless >>of whether they are libc functions or external library functions. > >allegro_init() will exit() to the caller if it can't initialize the >system. install_timer() and install_keyboard() are also guaranteed >to work on all DOS, POSIX, and Win32 platforms (which is what Allegro >runs under). In the context of C, exit() (note the parentheses, implying the libc function) returns to the system (the os), not the caller (the function that called it). Was that a typo? Also, on a PC, very little is /guaranteed/. :) -- AndrewJ