|
-
June 3rd, 2008, 02:24 AM
#1
Convert char array to char*
Probably another stupid question I need to convert an array of char to a single char*. But not all elements - I want to ignore the first and last element. So, if char digits[6] contains the following:
digits[0] = "A";
digits[1] = "B";
digits[2] = "C";
digits[3] = "D";
digits[4] = "E";
digits[5] = "F";
then I want char * alldigits to contain "BCDE". I have spent ages looking for a solution to this, but can't find anything that works!
TIA
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|