🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #1164

Re: Pascal program works but not C program!

#1164
From: Peter Seebach
Date: Mon, 08 Jan 1996 03:35
28 lines
1662 bytes
In article <821069300snz@genesis.demon.co.uk>,
Lawrence Kirby  <fred@genesis.demon.co.uk> wrote:
>In article <4cpqt6$9r8@solutions.solon.com>
>           seebs@solutions.solon.com "Peter Seebach" writes:
>>>void main (int argc, char **argv)
>>Yup.

>Oops!

Let this be a lesson to all of you - even when you *do* know what you're
doing, take the time to browse the post and make sure you didn't do
anything particularly stupid.

Well, there.  I've made a mistake in news this year, now I can relax,
and maybe '97 will be the year that I post actively in several groups
without making an obvious mistake.

(For those unclear: The declaration above is not legal C, and results
in undefined behavior.  Many books get this wrong.  And to give this
alt.msdos.programmer relevance, where do you think the famed errorlevel
*comes* from?  The return from main().)

-s
-- 
Peter Seebach - seebs@solon.com - Copyright 1995 Peter Seebach.
C/Unix proto-wizard -- C/Unix questions? Send mail for help.  No, really!
Using trn?  Weird new newsgroup problem?  I know the fix!  Email me!
The *other* C FAQ - ftp taniemarie.solon.com /pub/c/afq - Not A Flying Toy
Technical Details
Message-ID: <4cq3dc$akp@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4cdpr2$psi@lugb.latrobe.edu.au> <4cp3vc$8nh@brahms.tfi.be> <4cpqt6$9r8@solutions.solon.com> <821069300snz@genesis.demon.co.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: seebs@solutions.solon.com (Peter Seebach)
Newsgroups: alt.msdos.programmer,comp.lang.c
Subject: Re: Pascal program works but not C program!
Date: 7 Jan 1996 21:35:08 -0600
Organization: Usenet Fact Police (Undercover)
Message-ID: <4cq3dc$akp@solutions.solon.com>
References: <4cdpr2$psi@lugb.latrobe.edu.au> <4cp3vc$8nh@brahms.tfi.be> <4cpqt6$9r8@solutions.solon.com> <821069300snz@genesis.demon.co.uk>
NNTP-Posting-Host: solutions.solon.com