Hello World in C
1 2 3 4 5 6 | #include <stdio.h>
int main(int argc, char *argv[], char *envp[]) {
printf("hello world\n");
return 0;
}
|
1 2 3 4 5 6 7 | CC=gcc
hello: hello.c
$(CC) -o hello hello.c
clean:
rm hello
|
1 2 3 4 5 6 | #include <stdio.h>
int main(int argc, char *argv[], char *envp[]) {
printf("hello world\n");
return 0;
}
|
1 2 3 4 5 6 7 | CC=gcc
hello: hello.c
$(CC) -o hello hello.c
clean:
rm hello
|