aboutsummaryrefslogtreecommitdiffstats
path: root/libexec_put_arguments.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec_put_arguments.c')
-rw-r--r--libexec_put_arguments.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/libexec_put_arguments.c b/libexec_put_arguments.c
new file mode 100644
index 0000000..45f7f1a
--- /dev/null
+++ b/libexec_put_arguments.c
@@ -0,0 +1,22 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+#ifndef TEST
+
+
+int
+libexec_put_arguments(struct libexec_command *cmd, const char *const *args)
+{
+ size_t n = 0;
+ if (!args) {
+ errno = EINVAL;
+ return -1;
+ }
+ while (args[n])
+ n += 1;
+ return libexec_put_argumentsn(cmd, args, n);
+}
+
+
+#else
+LIBEXEC_CONST__ int main(void) {return 0;} /* TODO test */
+#endif