diff options
author | Aaron Crane <arc@cpan.org> | 2017-10-13 10:03:59 +0200 |
---|---|---|
committer | Aaron Crane <arc@cpan.org> | 2017-10-21 16:52:44 +0100 |
commit | f1519f70705b2eee563b9ac4056d4eb39d383ea1 (patch) | |
tree | 99be297bc99adf835bdb6832add4fbf24992a766 /util.c | |
parent | 03f3961765f87fb8bccb4e3fa5b9e2e533d7dc30 (diff) | |
download | perl-f1519f70705b2eee563b9ac4056d4eb39d383ea1.tar.gz |
Rely on C89 sprintf() return value semantics
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -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 |