This commit is contained in:
vxclutch
2026-05-03 12:24:22 -04:00
parent 95f7a7a769
commit cf1ff9a96e
6 changed files with 143 additions and 14 deletions

View File

@@ -1,5 +1,5 @@
/* main.c: defines the entry point for tcpl.
Copyright (C) vxclutch
Copyright (C) vxclutch 2026
Written by vxclutch
@@ -22,9 +22,14 @@ PERFORMANCE OF THIS SOFTWARE. */
int main(int argc, char** argv)
{
unused argc;
arg0 = basename(argv[0]);
tcpl_print("Hello, World!");
if (argc < 2)
tcpl_print("Hello, World!");
else {
for (int i = 1; i < argc; ++i) {
tcpl_print("Hello, %s!", argv[i]);
}
}
return 0;
}