Debian Codegraph @

doc/examples/filtering/files/hello/hello.c

raw
1 /*
2 * hello.c - Simple hello program
3 */
4 #include <stdio.h>
5 #include <libhello.h>
6
7 int main(int argc, char *argv[])
8 {
9 const char *person = NULL;
10
11 if (argc > 1)
12 person = argv[1];
13
14 if (person)
15 hello(person);
16 else {
17 #ifdef DEFAULT_PERSON
18 hello(DEFAULT_PERSON);
19 #else
20 hello("stranger");
21 #endif
22 }
23
24 return 0;
25 }