Biggest problems w/ D - strings

Derek Parnell derek at psych.ward
Sat Aug 11 03:21:56 PDT 2007


On Sat, 11 Aug 2007 20:07:51 +1000, Derek Parnell wrote:


Oops! Of course I really meant ... 

and use it like ...

   char[32] NameA;
   char[56] NameB;
   NameA[] = '\0'; 
   NameB[] = '\0';

   NameA[0..5] = "derek";
   NameB[0..7] = "parnell";
   result = compare(NameA, NameB);


-- 
Derek Parnell
Melbourne, Australia
skype: derek.j.parnell



More information about the Digitalmars-d mailing list