#undef vprintf
#undef vwprintf
+#ifdef _MSC_VER
+#pragma function(_wcsset)
+#endif
+
#ifndef _LIBCNT_
/*********************************************************************
* _wcsdup (MSVCRT.@)
return ret;
}
+/******************************************************************
+ * _wcsupr_s (MSVCRT.@)
+ *
+ */
+INT CDECL _wcsupr_s( wchar_t* str, size_t n )
+{
+ wchar_t* ptr = str;
+
+ if (!str || !n)
+ {
+ if (str) *str = '\0';
+ __set_errno(EINVAL);
+ return EINVAL;
+ }
+
+ while (n--)
+ {
+ if (!*ptr) return 0;
+ *ptr = toupperW(*ptr);
+ ptr++;
+ }
+
+ /* MSDN claims that the function should return and set errno to
+ * ERANGE, which doesn't seem to be true based on the tests. */
+ *str = '\0';
+ __set_errno(EINVAL);
+ return EINVAL;
+}
+
/*********************************************************************
* wcstod (MSVCRT.@)
*/
return ERANGE;
}
- if(size > numElement)
- size = numElement;
-
memcpy( wcDest, wcSrc, size*sizeof(WCHAR) );
return 0;