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; }