Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Jan 2000 16:46:21 +0000 (GMT)
From:      Jonathon McKitrick <jcm@dogma.freebsd-uk.eu.org>
To:        Naief BinTalal <naief@cyfari.com>
Cc:        freebsd-questions@freebsd.org, lee@dogma.freebsd-uk.eu.org
Subject:   Re: simple c i/o question
Message-ID:  <Pine.BSF.4.21.0001121645470.2443-100000@dogma.freebsd-uk.eu.org>
In-Reply-To: <20000112114019.A93129@cyfari.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <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
>------------------------------------------------------- 
>

-=> jm <=-





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?Pine.BSF.4.21.0001121645470.2443-100000>