summaryrefslogtreecommitdiff
path: root/globals.c
diff options
context:
space:
mode:
Diffstat (limited to 'globals.c')
-rw-r--r--globals.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/globals.c b/globals.c
index 0782eba226..5bf4aeabcb 100644
--- a/globals.c
+++ b/globals.c
@@ -79,4 +79,13 @@ Perl_fprintf_nocontext(PerlIO *stream, const char *format, ...)
return PerlIO_vprintf(stream, format, arglist);
}
+int
+Perl_printf_nocontext(const char *format, ...)
+{
+ dTHX;
+ va_list(arglist);
+ va_start(arglist, format);
+ return PerlIO_vprintf(PerlIO_stdout(), format, arglist);
+}
+
#include "perlapi.h" /* bring in PL_force_link_funcs */