4381bb2a22
When the execution reaches the end of the main functions, they implicitly return a successful status.
12 lines
256 B
C
12 lines
256 B
C
#include <string.h>
|
|
#include <unistd.h>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
int i;
|
|
for(i = 0; i < argc; i++) {
|
|
write(STDOUT_FILENO, argv[i], strlen(argv[i]));
|
|
write(STDOUT_FILENO, " ", 1);
|
|
}
|
|
write(STDOUT_FILENO, "\n", 1);
|
|
}
|