ansstring

This is a discussion on ansstring within the C++ Programming forums, part of the General Programming Boards category; how do you convert a ansistring to a char in c++ builder...

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    12

    ansstring

    how do you convert a ansistring to a char in c++ builder

  2. #2
    _B-L-U-E_ Betazep's Avatar
    Join Date
    Aug 2001
    Posts
    1,412
    a string cannot be a character, but can be (and is) a character array.

    strcpy(*character[], ansistring); // I think that will work.... it has been a while

    char second_char = character[0];
    Blue

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21