Re: [amusement] Petit Hello, World!

トップ ページ

このメッセージに返信
著者: Pierre Pronchery
日付:  
To: guilde
題目: 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