TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: David Nugent
from: Frank Adam
date: 1996-04-24 08:20:00
subject: Filename Expansion

G'Day David,
 
-=> Quoting David Nugent to Frank Adam <=-

 FA> What really freaks me is that FALSE is defined as 0, so according to
 FA> that, are the next lines true or false ?

 DN> But these functions don't return boolean information. They 
 DN> return something DIFFERENT, such as a result code, or a 
 DN> value useful for comparison.
That entire msg was a slip of the keyboard :)
Well, not entirely. I was looking at it from a different angle, strcmp() 
was obviously a bad example, but on others return values are 0 and -1 
where 0 is success.
From a logical point of view, a function's success to me would mean TRUE.
So it seems illogical then, to make that function return a value, which in 
another context is failure. I do wonder if there was any reason why our 
compiler writing forefathers did it this way ? :) 
From what i've read in another echo, -1 as a return code is not even legal 
in dos ?
                      
  L8r Frank (fadam{at}ozemail.com.au).
  
___ Blue Wave/DOS v2.21

--- Maximus 3.01
* Origin: The Software Parlour (3:635/544)
SEEN-BY: 50/99 78/0 620/243 623/630 632/349 635/503 544 727 711/401 409 410
SEEN-BY: 711/413 430 808 809 932 934 712/515 713/888 714/906 800/1 7877/2809
@PATH: 635/544 50/99 711/808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.