delorie.com/archives/browse.cgi | search |
From: | AndrewJ <luminous-is AT REMOVE DOT home DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Some minor questions... |
Message-ID: | <pvuqrsg9jp15i6nki9r4plk3e2sado8c86@4ax.com> |
References: | <ur_u5.3591$%f1 DOT 142828 AT news1 DOT news DOT adelphia DOT net> <n04prso66ougi963v4v95ho8b3084j5jag AT 4ax DOT com> <bqrprs0vpmustguinpk8uevqf9p4osm8v6 AT 4ax DOT com> |
X-Newsreader: | Forte Agent 1.7/32.534 |
MIME-Version: | 1.0 |
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 <Bullcr_pd_yerrick AT hotmail DOT comRemoveBullcr_p> 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |