[PD-dev] Using & operator on t_symbol?

Mathieu Bouchard matju at artengine.ca
Thu Mar 26 20:04:12 CET 2009


On Thu, 26 Mar 2009, B. Bogart wrote:

> strcpy(charkey,(char *)textValue->s_name);
> without the cast the value never gets set.

I don't believe this. There has to be something else you did, but this 
just can't be it. s_name is already a char *, and then, if it had the 
wrong type, it'd only do a type error. In C you can't overload function 
names, so there can only be one strcpy and one behaviour for it.

  _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec


More information about the Pd-dev mailing list