X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstdio%2Fvsnprintf.c;h=30086ab1d38a62dd2d72af1cc23cbe2d8037be06;hb=12e17136786afb1775c9dc946cbe41f5e230c24a;hp=df104ecab5cc10b123aac9fdf085679230a9122d;hpb=dcc8a8e99f69e090a03b7b868443addbc0817820;p=pdclib.old diff --git a/functions/stdio/vsnprintf.c b/functions/stdio/vsnprintf.c index df104ec..30086ab 100644 --- a/functions/stdio/vsnprintf.c +++ b/functions/stdio/vsnprintf.c @@ -1,8 +1,36 @@ -// ---------------------------------------------------------------------------- -// $Id$ -// ---------------------------------------------------------------------------- -// Public Domain C Library - http://pdclib.sourceforge.net -// This code is Public Domain. Use, modify, and redistribute at will. -// ---------------------------------------------------------------------------- - -int vsnprintf( char * restrict s, size_t n, const char * restrict format, va_list ap ) { /* TODO */ }; +/* $Id$ */ + +/* Release $Name$ */ + +/* vsnprintf( char *, size_t, const char *, va_list ap ) + + This file is part of the Public Domain C Library (PDCLib). + Permission is granted to use, modify, and / or redistribute at will. +*/ + +#include +#include + +#ifndef REGTEST + +typedef char wchar_t; + +int vsnprintf( char * str, size_t size, const char * format, _PDCLIB_va_list arg ) +{ + /* TODO: This function should interpret format as multibyte characters. */ + /* TODO: Implement */ + return 0; +} + +#endif + +#ifdef TEST +#include <_PDCLIB_test.h> + +int main( void ) +{ + TESTCASE( NO_TESTDRIVER ); + return TEST_RESULTS; +} + +#endif