summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAaron Crane <arc@cpan.org>2017-10-13 10:03:59 +0200
committerAaron Crane <arc@cpan.org>2017-10-21 16:52:44 +0100
commitf1519f70705b2eee563b9ac4056d4eb39d383ea1 (patch)
tree99be297bc99adf835bdb6832add4fbf24992a766 /util.c
parent03f3961765f87fb8bccb4e3fa5b9e2e533d7dc30 (diff)
downloadperl-f1519f70705b2eee563b9ac4056d4eb39d383ea1.tar.gz
Rely on C89 sprintf() return value semantics
Diffstat (limited to 'util.c')
-rw-r--r--util.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/util.c b/util.c
index a4a6fb6bd7..7525a7e034 100644
--- a/util.c
+++ b/util.c
@@ -4868,28 +4868,6 @@ Perl_mem_log_del_sv(const SV *sv,
#endif /* PERL_MEM_LOG */
/*
-=for apidoc my_sprintf
-
-The C library C<sprintf>, wrapped if necessary, to ensure that it will return
-the length of the string written to the buffer. Only rare pre-ANSI systems
-need the wrapper function - usually this is a direct call to C<sprintf>.
-
-=cut
-*/
-#ifndef SPRINTF_RETURNS_STRLEN
-int
-Perl_my_sprintf(char *buffer, const char* pat, ...)
-{
- va_list args;
- PERL_ARGS_ASSERT_MY_SPRINTF;
- va_start(args, pat);
- vsprintf(buffer, pat, args);
- va_end(args);
- return strlen(buffer);
-}
-#endif
-
-/*
=for apidoc quadmath_format_single
C<quadmath_snprintf()> is very strict about its C<format> string and will