aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-06-20 00:11:20 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-06-20 00:12:20 +0200
commite5c94ebbb873958709af7913882fb6aaceefa0da (patch)
tree1f41024d95338ff409cf38f85a67aed1c555443a
parent24d07dddd997544b455b0ab54ed7b007f6617d97 (diff)
Update example
-rw-r--r--README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.md b/README.md
index b1405a3..ecc9f8c 100644
--- a/README.md
+++ b/README.md
@@ -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);