[PD] comparing symbols in external

2014-05-03 Thread Jaime E Oliver
Hi all, I am trying to compare two symbols, one incoming in a list into an external and the other one stored internally in the external. It compiles fine, but I don't get a match. c code is below. Ideas on what I'm missing? J void testtext_input(t_testtext *x, t_symbol *selector, int

Re: [PD] comparing symbols in external

2014-05-03 Thread Miller Puckette
Strange things like this can happen if someone inadvertently writes a new string into an existing symbol... i.e., never do this: strcat(sym-s_name, cat). MAybe there was already a symbol somewhere else whose name is cat and then you'll have 2 symbols with teh same name but different addresses.

Re: [PD] comparing symbols in external

2014-05-03 Thread IOhannes m zmölnig
On 05/03/2014 09:22 AM, Jaime E Oliver wrote: Hi all, I am trying to compare two symbols, one incoming in a list into an external and the other one stored internally in the external. It compiles fine, but I don't get a match. c code is below. Ideas on what I'm missing the whole idea

Re: [PD] comparing symbols in external

2014-05-03 Thread Jaime E Oliver
Thanks to both, it makes sense and it works now. J On May 3, 2014, at 4:42 AM, IOhannes m zmölnig zmoel...@iem.at wrote: On 05/03/2014 09:22 AM, Jaime E Oliver wrote: Hi all, I am trying to compare two symbols, one incoming in a list into an external and the other one stored internally