Bob Miller wrote:

Fred James wrote:

I need to build a string into a character array (which I know how to do). But one of the characters needs to be 'Ctrl-T' - any ideas? Thank you in advance for any help you may be able to offer

   char my_string[] = "Type ? for Tenex";
   my_string[5] = 'T' & 0x1F;

or...

   const char my_string[] = "Two for \x14 and \x14 for two";

Is that what you're looking for?

Bob Miller
Thanks - yes actually, something sort of like that - it works and it has got me off and running.
Regards
Fred James

_______________________________________________
EUGLUG mailing list
[email protected]
http://www.euglug.org/mailman/listinfo/euglug

Reply via email to