dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/csupport Crt0.cs,1.3,1.4


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/csupport Crt0.cs,1.3,1.4
Date: Sat, 28 Jun 2003 00:58:39 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/csupport
In directory subversions:/tmp/cvs-serv12356/csupport

Modified Files:
        Crt0.cs 
Log Message:


Add the "SetWideString" helper method.


Index: Crt0.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/csupport/Crt0.cs,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Crt0.cs     31 May 2003 03:32:02 -0000      1.3
--- Crt0.cs     28 Jun 2003 04:58:37 -0000      1.4
***************
*** 387,390 ****
--- 387,400 ----
                        }
  
+       // Set the contents of a wide character string during initialization.
+       public unsafe static void SetWideString(char *dest, String src)
+                       {
+                               int index = 0;
+                               foreach(char ch in src)
+                               {
+                                       dest[index++] = ch;
+                               }
+                       }
+ 
  #if CONFIG_SMALL_CONSOLE
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]