Author: jgardou
Date: Sat Jul 21 20:05:18 2012
New Revision: 56929
URL:
http://svn.reactos.org/svn/reactos?rev=56929&view=rev
Log:
[OOPS]
- Forgot some files
Added:
trunk/reactos/lib/sdk/crt/printf/_vscprintf.c (with props)
trunk/reactos/lib/sdk/crt/printf/_vscwprintf.c (with props)
Added: trunk/reactos/lib/sdk/crt/printf/_vscprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/printf/_vscpri…
==============================================================================
--- trunk/reactos/lib/sdk/crt/printf/_vscprintf.c (added)
+++ trunk/reactos/lib/sdk/crt/printf/_vscprintf.c [iso-8859-1] Sat Jul 21 20:05:18 2012
@@ -1,0 +1,28 @@
+/*
+ * COPYRIGHT: GNU GPL, see COPYING in the top level directory
+ * PROJECT: ReactOS crt library
+ * FILE: lib/sdk/crt/printf/_vscprintf.c
+ * PURPOSE: Implementation of _vscprintf
+ */
+
+#include <stdio.h>
+#include <stdarg.h>
+
+int _cdecl streamout(FILE *stream, const char *format, va_list argptr);
+
+int _vscprintf(
+ const char *format,
+ va_list argptr
+)
+{
+ int ret;
+ FILE* nulfile = fopen("nul", "w");
+ if(nulfile == NULL)
+ {
+ /* This should never happen... */
+ return -1;
+ }
+ ret = streamout(nulfile, format, argptr);
+ fclose(nulfile);
+ return ret;
+}
Propchange: trunk/reactos/lib/sdk/crt/printf/_vscprintf.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/lib/sdk/crt/printf/_vscwprintf.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/sdk/crt/printf/_vscwpr…
==============================================================================
--- trunk/reactos/lib/sdk/crt/printf/_vscwprintf.c (added)
+++ trunk/reactos/lib/sdk/crt/printf/_vscwprintf.c [iso-8859-1] Sat Jul 21 20:05:18 2012
@@ -1,0 +1,37 @@
+/*
+ * COPYRIGHT: GNU GPL, see COPYING in the top level directory
+ * PROJECT: ReactOS crt library
+ * FILE: lib/sdk/crt/printf/_vscprintf.c
+ * PURPOSE: Implementation of _vscprintf
+ */
+
+#include <stdio.h>
+#include <stdarg.h>
+
+#ifdef _LIBCNT_
+#include <ntddk.h>
+#endif
+
+int _cdecl wstreamout(FILE *stream, const wchar_t *format, va_list argptr);
+
+int _vscwprintf(
+ const wchar_t *format,
+ va_list argptr
+)
+{
+ int ret;
+#ifndef _LIBCNT_
+ FILE* nulfile;
+ nulfile = fopen("nul", "w");
+ if(nulfile == NULL)
+ {
+ /* This should never happen... */
+ return -1;
+ }
+ ret = wstreamout(nulfile, format, argptr);
+ fclose(nulfile);
+#else
+ ret = -1;
+#endif
+ return ret;
+}
Propchange: trunk/reactos/lib/sdk/crt/printf/_vscwprintf.c
------------------------------------------------------------------------------
svn:eol-style = native