[Eug-lug] OT: C question
Fred James
fredjame at fredjame.cnc.net
Mon Aug 27 22:51:05 PDT 2007
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://euglug.org/pipermail/euglug/attachments/20070828/9d11f477/attachment.htm
More information about the EUGLUG
mailing list