_mbsupr

François Gouget fgouget at codeweavers.com
Sat Sep 15 02:43:46 CDT 2001


Changelog:

   François Gouget <fgouget at codeweavers.com>

 * dlls/msvcrt/mbcs.c,
   dlls/msvcrt/msvcrt.spec

   Implement _mbsupr

-- 
François Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: dlls/msvcrt/msvcrt.spec
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/msvcrt.spec,v
retrieving revision 1.23
diff -u -r1.23 msvcrt.spec
8str str) strstr
 @ stub _mbstok #(str str)
 @ cdecl _mbstrlen(str) _mbstrlen
-@ stub _mbsupr #(str)
+@ cdecl _mbsupr(str) _mbsupr
 @ cdecl _memccpy(ptr ptr long long) memccpy
 @ forward -noimport _memicmp ntdll._memicmp
 @ cdecl _mkdir(str) _mkdir
--- dlls/msvcrt/msvcrt.spec	2001/09/07 18:34:45	1.23
+++ dlls/msvcrt/msvcrt.spec	2001/09/15 03:23:48
Index: dlls/msvcrt/mbcs.c
===================================================================
RCS file: /home/wine/wine/dlls/msvcrt/mbcs.c,v
retrieving revision 1.12
diff -u -r1.12 mbcs.c
--- dlls/msvcrt/mbcs.c	2001/09/07 18:34:45	1.12
+++ dlls/msvcrt/mbcs.c	2001/09/15 03:23:47
@@ -572,6 +572,28 @@
 
 
 /*********************************************************************
+ *              _mbsupr(MSVCRT.@)
+ */
+unsigned char * _mbsupr(  unsigned char *string    )
+{
+  unsigned char *p;
+
+  if(MSVCRT___mb_cur_max > 1)
+    {
+      FIXME("%s\n",string);
+      return string;
+    }
+  p = string;
+  while (*p)
+    {
+      *p= toupper(*p);
+      p++;
+    }
+  return string;
+}
+
+
+/*********************************************************************
  *              _mbsnbcpy(MSVCRT.@)
  */
 unsigned char * _mbsnbcpy(unsigned char *dest,const unsigned char *src,MSVCRT_size_t n)


More information about the wine-patches mailing list