[PD-dev] Converting arbitrary strings to symbol in an external

Martin Peach chakekatzil at gmail.com
Fri Mar 22 18:12:25 CET 2019

I take it to mean that there is an actual string at the location pointed to
by s.
To convert a float to a string, first sprintf(s, "%.0f", a_float);
or sprintf(s, "foo-%d", (int)a_float);
(ensure you have space at s for the string).
Then convert the string to a symbol with gensym.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-dev/attachments/20190322/af7b5374/attachment-0001.html>

More information about the Pd-dev mailing list