diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-06-20 00:11:20 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-06-20 00:12:20 +0200 |
commit | e5c94ebbb873958709af7913882fb6aaceefa0da (patch) | |
tree | 1f41024d95338ff409cf38f85a67aed1c555443a | |
parent | 24d07dddd997544b455b0ab54ed7b007f6617d97 (diff) |
Update example
-rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -73,7 +73,7 @@ main(int argc, char **argv) rebuild(); /* If the compiled binary isn’t outdated, do nothing */ - if (!foutdatedl("my-file", "my-file.c")) + if (fmdnewer("my-file", "my-file.c")) return EXIT_SUCCESS; /* Append ‘cc’ and our cflags to the command, but allow the user to use the @@ -89,7 +89,7 @@ main(int argc, char **argv) strspushl(&cmd, "-llux"); /* Push the final arguments to our command */ - strspushl(&cmd, "-o", "my-file", "-c", "my-file.c"); + strspushl(&cmd, "-o", "my-file", "my-file.c"); /* Print our command to stdout, and execute it */ cmdput(cmd); |