www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/18/04:46:22

From: "A.Appleyard" <A DOT APPLEYARD AT fs2 DOT mt DOT umist DOT ac DOT uk>
Organization: Materials Science Centre
To: djgpp AT delorie DOT com
Date: Tue, 18 Jun 1996 09:24:13 GMT
Subject: void treated as int (was: Re: Help Beginning)
Message-ID: <3457C032CC3@fs2.mt.umist.ac.uk>

  Leath Muller <leathm AT gbrmpa DOT gov DOT au> wrote (Subject: Re: Help Beginning):-
> Actually, I was taught this at the end of second year uni...the theory was
> something like: When you return to the OS after exiting from your program,
> you may send a void as void essentially translates into a numeric zero. As
> far as I know, void is undefined, not zero...so there you go, uni lecturers
> are sometimes wrong... :) ...

I imagine that (in djgpp on a PC) a (void function return value treated as
int) == whatever value was left in EAX register when the function finished.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019