aboutsummaryrefslogtreecommitdiffstats
path: root/envputenvf.c
diff options
context:
space:
mode:
Diffstat (limited to 'envputenvf.c')
-rw-r--r--envputenvf.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/envputenvf.c b/envputenvf.c
new file mode 100644
index 0000000..1b463ce
--- /dev/null
+++ b/envputenvf.c
@@ -0,0 +1,15 @@
+/* See LICENSE file for copyright and license details. */
+#include "libsimple.h"
+
+
+extern char *argv0;
+
+
+void
+envputenvf(int status, const char *fmt, va_list ap)
+{
+ if (vputenvf(fmt, ap)) {
+ fprintf(stderr, "%s: putenvf: %s\n", argv0, strerror(errno));
+ exit(status);
+ }
+}