blob: 4b5ff49ec959a10d368d6eb398681f56a4576833 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
char *greeting = getenv("GREETING");
if (greeting == NULL) {
greeting = "hello";
}
if (argc < 2) {
printf("%s, wasi!\n", greeting);
} else {
printf("%s, %s!\n", greeting, argv[1]);
}
}
|