Re: [amusement] Petit Hello, World!

Top Page

Reply to this message
Author: Pierre Pronchery
Date:  
To: guilde
Subject: Re: [amusement] Petit Hello, World!
On Sat, 19 Apr 2003 02:01:58 +0100
Pierre Pronchery <khorben@???> wrote:
> On Sat, 19 Apr 2003 01:53:59 +0100
> Pierre Pronchery <khorben@???> wrote:
> > contenu:
> > khorben@pinge:~$ cat test.c
> > int main() { write(0, "Hello, world!\n", 14); return 0; }
> meeeeeeerde stdout c 1, pas 0, me trompe-je?

le code suivant:
#include <stdio.h>
int main() { printf("%d\n", fileno(stdout)); return 0; }
...retourne bien 1.

--
Pierre