TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Paul Wankadia
from: Paul Edwards
date: 1996-11-03 08:08:14
subject: Auto string-length determination

PW> I don't usually return values from programs, that's all :)
PE> You do.  You always do.  And the DOS errorlevel will always pick it

PW> Well, I usually do

PW> void main() {

PW> /* blah blah blah */

PW> return;
PW> }

Which besides being ILLEGAL returns RANDOM errorlevels to DOS.

PE> up.  Just be sure you wrote your program properly, and everyone will
PE> be happy.  BFN.  Paul.

PW> I write my programs properly (sort of).  If I NEED to return a value from 
PW> my programs, I usually use exit() or something...

exit(x) is as valid as return(x), but I use the latter to avoid getting a
warning message from various compilers.  BFN.  Paul. 
@EOT:

---
* Origin: X (3:711/934.9)

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™.