Date: Wed, 12 Jan 2000 11:40:19 -0500 From: Naief BinTalal <naief@cyfari.com> To: Jonathon McKitrick <jcm@dogma.freebsd-uk.eu.org> Cc: freebsd-questions@freebsd.org, lee@dogma.freebsd-uk.eu.org Subject: Re: simple c i/o question Message-ID: <20000112114019.A93129@cyfari.com> In-Reply-To: <Pine.BSF.4.21.0001111538270.56476-100000@dogma.freebsd-uk.eu.org>; from jcm@dogma.freebsd-uk.eu.org on Wed, Jan 12, 2000 at 04:28:23PM %2B0000 References: <Pine.BSF.4.21.0001111538270.56476-100000@dogma.freebsd-uk.eu.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <stdio.h>
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000112114019.A93129>
