From owner-freebsd-questions Wed Jan 12 8:46:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id 2D41D14D70 for ; Wed, 12 Jan 2000 08:46:31 -0800 (PST) (envelope-from jcm@dogma.freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97]) by probity.mcc.ac.uk with esmtp (Exim 1.92 #3) id 128Quc-000DYC-00; Wed, 12 Jan 2000 16:46:22 +0000 Received: from localhost (jcm@localhost) by dogma.freebsd-uk.eu.org (8.9.3/8.9.3) with ESMTP id QAA02459; Wed, 12 Jan 2000 16:46:21 GMT (envelope-from jcm@dogma.freebsd-uk.eu.org) Date: Wed, 12 Jan 2000 16:46:21 +0000 (GMT) From: Jonathon McKitrick To: Naief BinTalal Cc: freebsd-questions@freebsd.org, lee@dogma.freebsd-uk.eu.org Subject: Re: simple c i/o question In-Reply-To: <20000112114019.A93129@cyfari.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Yes that's what i'm looking for, but it doesn't work. I'm telnetted in to a remote box to do this. Does that make a difference? On Wed, 12 Jan 2000, Naief BinTalal wrote: >On Wed, Jan 12, 2000 at 04:28:23PM +0000, Jonathon McKitrick wrote: >> >> I'm trying to write a hello world program. What is the output file for >> the console currently being displayed (in other words, the screen)? >> I've tried printf, and fprintf to stdout and stderr. > > #include > > int > main(void) > { > (void)fprintf(stdout,"Hello World\n"); > return 0; > } > > cc -o hello hello.c > > Is this what you are looking for? > > Cheers, > Naief > BBTG >> >> -=> jm <=- >> >> >> >> >> >> >> To Unsubscribe: send mail to majordomo@FreeBSD.org >> with "unsubscribe freebsd-questions" in the body of the message >> > >-- >------------------------------------------------------- >Naief BinTalal | naief@cyfari.com >------------------------------------------------------- >"A rock pile ceases to be a rock pile the moment a > single man contemplates it, bearing within him the > image of a cathedral" -- Antoine de Saint-Exupery >------------------------------------------------------- > -=> jm <=- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message