X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fvsprintf.c;h=8e21b70352877e9b03c7e4a1f89fc4d30544f3ec;hb=e5456e3c2697c4e17fc9aa3439f2e305517b4d96;hp=2cfcdfb94aa7b4ea1d2d503019f8327d141ab0bb;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/stdio/vsprintf.c b/functions/stdio/vsprintf.c index 2cfcdfb..8e21b70 100644 --- a/functions/stdio/vsprintf.c +++ b/functions/stdio/vsprintf.c @@ -6,3 +6,16 @@ // ---------------------------------------------------------------------------- int vsprintf( char * restrict s, const char * restrict format, va_list ap) { /* TODO */ }; + +/* PDPC code - unreviewed +{ + int ret; + + ret = vvprintf(format, arg, NULL, s); + if (ret >= 0) + { + *(s + ret) = '\0'; + } + return (ret); +} +*/