[PD-dev] Using & operator on t_symbol?

B. Bogart ben at ekran.org
Wed Mar 25 18:41:58 CET 2009


Hey all,

A gphoto function expects a variable argument in the following form:

char myvar[] = "10";

function(&myvar);

But I'd like to pass a symbol argument from PD.

function(&arg->s_name);

does not work. (no errors, the value just does not get set.)

What is the proper way to get the address of the s_name part of a t_symbol?

Thanks,
B.




More information about the Pd-dev mailing list