From owner-freebsd-questions Wed Jan 12 8:41:34 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www.cyfari.com (www.cyfari.com [63.70.68.50]) by hub.freebsd.org (Postfix) with SMTP id E9E7A14D3D for ; Wed, 12 Jan 2000 08:41:27 -0800 (PST) (envelope-from naief@cyfari.com) Received: (qmail 19740 invoked from network); 12 Jan 2000 16:42:47 -0000 Received: from unknown (HELO naief.cyfari.com) (208.193.65.11) by www.cyfari.com with SMTP; 12 Jan 2000 16:42:47 -0000 Date: Wed, 12 Jan 2000 11:40:19 -0500 From: Naief BinTalal To: Jonathon McKitrick Cc: freebsd-questions@freebsd.org, lee@dogma.freebsd-uk.eu.org Subject: Re: simple c i/o question Message-ID: <20000112114019.A93129@cyfari.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from jcm@dogma.freebsd-uk.eu.org on Wed, Jan 12, 2000 at 04:28:23PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 ------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message