You could do something like this to get a byte array to pass to the
function if passing a string doesn't work:
IN: scratchpad "hello" utf8 encode .
B{ 104 101 108 108 111 }
Other encodings are available, like ascii or utf16, etc..
On Mon, Mar 2, 2015 at 10:15 AM, Mark Green <m...@antelope.nildram.co.uk>
wrote:
> Hi,
>
> Thanks for the note. However I am not writing the function declaration
> myself, I'm using the ones provided in extra.gtk.ffi. Can I use encode to
> roll my own into the char-array type?
>
> 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
> Factor-talk@lists.sourceforge.net
> 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
Factor-talk@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/factor-talk