$ cat > hello.c << EOF
int
main (void)
{
fprintf (stdout, "hello world !\n");
}
EOF
$ make hello
cc hello.c -o hello
hello.c: In function `main':cc hello.c -o hello
hello.c:4: `stdout' undeclared (first use in this function)
hello.c:4: (Each undeclared identifier is reported only once
hello.c:4: for each function it appears in.)
make: *** [hello] Error 1
$ ed hello.c << EOF
1
i
#include <stdio.h>
.
w
q
EOF
$ make hello
cc hello.c -o hello
$ ./hello
hello world !
[^] # Re: Un éditeur qui gagne à être connu......
Posté par Étienne . En réponse à la dépêche Un éditeur qui gagne à être connu....... Évalué à 5.
$ cat > hello.c << EOF
int
main (void)
{
fprintf (stdout, "hello world !\n");
}
EOF
$ make hello
cc hello.c -o hello
hello.c: In function `main':cc hello.c -o hello
hello.c:4: `stdout' undeclared (first use in this function)
hello.c:4: (Each undeclared identifier is reported only once
hello.c:4: for each function it appears in.)
make: *** [hello] Error 1
$ ed hello.c << EOF
1
i
#include <stdio.h>
.
w
q
EOF
$ make hello
cc hello.c -o hello
$ ./hello
hello world !
Que demande le peuple ?