How to convert String to char array

From: Alchemik (kilohz_at_poczta.onet.pl_NO_SPAM)
Date: 10/26/03


Date: Sun, 26 Oct 2003 10:26:12 +0100

I have small problem. I found that using toCharArray i can convert my string
to the char array but i have no idea how to use this metod. I have string
costam and char[] data and no idea what to do. If anybody can help me i'd be
greatfull.
Thanks a lot

-- 
               Alchemik                     kilobyte[at]tlen[dot]pl
<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>
"C makes it easy to shoot yourself in the foot; C++ makes
it harder, but when you do, it blows away your whole leg."
                                                - Bjarne Stroustrup


Relevant Pages

  • Re: Delimited String to Array
    ... The casting is not required, and neither is the parsing of the string ... to make explicit what the compiler does implicitly: ... new char array, then loading it with the first character of a string. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Fast and Safe C Strings: User friendly C macros to Declare and use C Strings.
    ... simply a char array - and passed it to a function that expects a string. ... One could also say that an unsheathed sword is not dangerous. ... no danger attached to a sword does not make it safer. ...
    (comp.lang.c)
  • Re: pcl: is LIST the same as ?
    ... >'casting away const' (although most compilers seem to be in denial;) ... >Then, to modify the string, you're supposed to be very explicit about ... that the first creates a pointer to an unnamed char array (the string ... many compilers will, in the first case, relocate the string constant ...
    (comp.lang.lisp)
  • Re: new String ( byte[] , encoding ) under the hood
    ... >characters to make an immutable char array, the place to achieve savings ... I wonder if there could be some way to hand off a char array to be ... inserted in a string. ...
    (comp.lang.java.programmer)
  • Re: could anybody help me with this simple exercise?
    ... > -A palindrome is a string that is spelled the same way ... > Write a function that uses pointersto check if the input char array is ... have an appropriate newsgroups line in your header for your mail to be seen, ...
    (comp.lang.c.moderated)