The c-string type handles encoding and decoding to a known encoding like UTF8 
which is the default I think. 

See the "encode" and "decode" words for under the covers how it works. 


> On Mar 1, 2015, at 3:55 PM, Doug Coleman <[email protected]> wrote:
> 
> Hi Mark,
> 
> You can try using the ``c-string`` type in a C function declaration in lieu 
> of a ``char*``. I think it will do what you need.
> 
> Doug
> 
> 
>> On Sun, Mar 1, 2015 at 3:46 PM, Mark Green <[email protected]> 
>> wrote:
>> Hi,
>> 
>> If I want to turn a string into a char-array type to use the GTK library 
>> with it, is there a function to do this? I've tried <char-array> but that 
>> seems to want to do a multiplication.
>> 
>> Mark
>> 
>> 
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, 
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for 
>> all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Factor-talk mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/factor-talk
>> 
> 
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the 
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Factor-talk mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/factor-talk
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk

Reply via email to