Mail Archives: djgpp/1997/07/07/11:15:15
John M. Aldrich wrote:
> Embedded software is a special case of C/C++ and
> may not have any applicability to the general
> standard. How many times have you written a
> program to run a mobile phone?
As it happens, that's exactly the software I've been
working on for the last 4+ years, for 4 different
projects. In fact, almost all of my professional
experience in the last 18 years has been on embedded
software. The exceptions have been auxilliary programs
to do with the development process, like parsers,
text formatting, code generators, for MSDOS, VMS and
UNIX, which haven't been the end product but means to
achieve it.
For that matter, when it comes to Windows programs you
can forget the result code as well, because the startup
and exit interface is very different.
In my experience, only a few programs ever need to
bother with the exit code, and most of the time you know
you need to set it (programs designed to be run from make,
for example). The vast majority of my programs end in
either return 0 or exit(0) if they exit at all.
Chris
- Raw text -