diff options
| author | mo khan <mo@mokhan.ca> | 2014-10-24 11:57:35 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-10-24 11:57:35 -0600 |
| commit | 5f81e4c2a3988a70df088c68df87cd96a36c389c (patch) | |
| tree | 9c6f1af230032255f8bc944c8a9aa8e711f49cff | |
add a greet function in c file.
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | greeting.c | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f47cb20 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.out diff --git a/greeting.c b/greeting.c new file mode 100644 index 0000000..1a6ea11 --- /dev/null +++ b/greeting.c @@ -0,0 +1,11 @@ +#include <stdio.h> + +int greet(char *name) { + printf("Hello %s\n", name); +} + +int main(int argc, const char *argv[]) +{ + greet("mo"); + return 0; +} |
