diff options
| author | Blake Romero <blake@blkrom.com> | 2024-10-18 02:37:49 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2024-10-30 10:16:05 +0000 |
| commit | 5d7c2925c4ef268413363f0eab01132a6254087e (patch) | |
| tree | 4dac22faa2a42931c037a095f67cf5ef4ea971d3 /src/tdo.c | |
| parent | 83517a2775c953d676fb406dc2f96896b73d2c64 (diff) | |
Refactor main to source & header files, & update Makefile
Diffstat (limited to 'src/tdo.c')
| -rw-r--r-- | src/tdo.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/tdo.c b/src/tdo.c new file mode 100644 index 0000000..7b3ff0e --- /dev/null +++ b/src/tdo.c @@ -0,0 +1,15 @@ +#include <stdio.h> +#include "tdo.h" + +void print_version() { + printf("tdo version 0.0.1\n"); +} + +void new_tdo(int argc, char** argv) { + printf("New todo: "); + // just in case not using quotes + for (int i=2; i<argc; ++i) printf("%s ",argv[i]); + printf("\n"); +} + + |
