aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalen Guyer <galen@galenguyer.com>2021-04-24 15:38:24 -0400
committerGalen Guyer <galen@galenguyer.com>2021-04-24 15:38:24 -0400
commitdf02703679d9240b241a990368349e4487b01ed9 (patch)
tree1e49a2e651dc043de61f189499c3893a09611049
parent73da8b7cfd65c3a1ab015d1355a0174404312a74 (diff)
Get execvp working with echo
-rw-r--r--composer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/composer.c b/composer.c
index 9eab473..5ad0273 100644
--- a/composer.c
+++ b/composer.c
@@ -1,3 +1,6 @@
+#include <unistd.h>
+#define COMMAND "echo"
+
int main(int argc, char** argv) {
- return 0;
+ execvp(COMMAND, argv);
} \ No newline at end of file