X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=functions%2Fstdio%2Fvsprintf.c;h=8e21b70352877e9b03c7e4a1f89fc4d30544f3ec;hp=2cfcdfb94aa7b4ea1d2d503019f8327d141ab0bb;hb=0a5395faab237ba9008352b0f4bee9659bbd3d5f;hpb=34893ecc2200dc7017c36a54cb6c5f4c2378b5ec 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); +} +*/