Oh! you want to joke, is it ? Anyway exit(42) means :


EXIT FOR TEA TOO





What I have realised ...





Sumit



On Thu, 13 Nov 2003 04:16:16 -0800 (PST), Libre Soft <[EMAIL PROTECTED]> wrote:


--- surajit dutta <[EMAIL PROTECTED]>
wrote:
Thanks... will check them out

ps: what does exit(42) mean??

[snip]
Well, as you might know, all programs are supposed to
return a value either to the OS or the calling
function on completion. As a convention, it should be
0 on _success_ and anything between 1 & 255 all
inclusive in case of an _error_. When a program having
the code below is called with a command line argument
``help'', it'll just print ``don't panic'' & return an
error status [42 in this case]. There is no
significance of 42 as it could have been anything else
in the range. That's it. It was just meant as a joke
but can well serve the purpose of a message to newbies
from a self-acclaimed geek ;-) Have a nice day Surajit ...
Bhaskar G.

=====
-------------BEGIN SIGNATURE-----------
if (argc > 1 && strcmp(argv[1], "-help") == 0) { printf("Don't Panic!\n") ; exit(42);
}
-------------END SIGNATURE--------------


__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3




-- _____ __ / __/__ __ ______ __ / /_ __\ \ / /_/ / / / / / / / / /- /____/ \____/ /_/\/\/ /_/ /_/ [EMAIL PROTECTED]


-- To unsubscribe, send mail to [EMAIL PROTECTED] with the body "unsubscribe ilug-cal" and an empty subject line. FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to