"sync up sprintf.c with swprintf.c. They both do the same except one is the wchar-version, so they shouldn't differ in other parts." by Elrond <elrond(at)samba(dash)tng(dot)org>
Modified: trunk/reactos/lib/rtl/sprintf.c
Modified: trunk/reactos/lib/rtl/swprintf.c

Modified: trunk/reactos/lib/rtl/sprintf.c
--- trunk/reactos/lib/rtl/sprintf.c	2005-11-19 13:31:52 UTC (rev 19343)
+++ trunk/reactos/lib/rtl/sprintf.c	2005-11-19 14:23:33 UTC (rev 19344)
@@ -2,6 +2,8 @@
  * PROGRAMMERS:     David Welch
  *                  Eric Kohl
  *
+ * TODO:
+ *   - Verify the implementation of '%Z'.
  */
 
 /*
@@ -14,6 +16,7 @@
 /*
  * Wirzenius wrote this portably, Torvalds fucked it up :-)
  */
+
 #include <rtl.h>
 
 #define ZEROPAD	1		/* pad with zero */
@@ -84,7 +87,7 @@
 	}
 	i = 0;
 	if (num == 0)
-		tmp[i++]='0';
+		tmp[i++] = '0';
 	else while (num != 0)
 		tmp[i++] = digits[do_div(&num,base)];
 	if (i > precision)
@@ -214,19 +217,19 @@
 		{
 			if (buf <= end)
 				*buf = ' ';
-			++buf;
+			buf++;
 		}
 	for (i = 0; i < len; ++i)
 	{
 		if (buf <= end)
 			*buf = (unsigned char)(*sw++);
-		++buf;
+		buf++;
 	}
 	while (len < field_width--)
 	{
 		if (buf <= end)
 			*buf = ' ';
-		++buf;
+		buf++;
 	}
 	return buf;
 }

Modified: trunk/reactos/lib/rtl/swprintf.c
--- trunk/reactos/lib/rtl/swprintf.c	2005-11-19 13:31:52 UTC (rev 19343)
+++ trunk/reactos/lib/rtl/swprintf.c	2005-11-19 14:23:33 UTC (rev 19344)
@@ -537,6 +537,9 @@
 }
 
 
+/*
+ * @implemented
+ */
 int vswprintf(wchar_t *buf, const wchar_t *fmt, va_list args)
 {
 	return _vsnwprintf(buf,MAXLONG,fmt,args);