summaryrefslogtreecommitdiff
path: root/doc/examples/integration-commands/files/hello/hello.c
blob: 83e762c2994e4f2c690116c84cc6e461d8f83d7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * hello.c - Simple hello program
 */
#include <stdio.h>
#include <libhello.h>

int main(int argc, char *argv[])
{
  const char *person = NULL;

  if (argc > 1)
    person = argv[1];

  if (person)
    hello(person);
  else
    hello("stranger");

  return 0;
}