Debian Codegraph @

doc/examples/composition/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 hello("stranger");
18
19 return 0;
20 }