I have a t_symbol *prefix, member of my object struct and set by an
argument in my *new function :
if ( (ac==1) && (av->a_type == A_SYM) )
x->prefix = av->a_w.w_sym;
if (debug) post("prefix :%s", x->prefix->s_name);
Ok. Then i have a t_symbol *target, also member of my struct, which i
try to be set dynamically when a list is received. The first int of the
list should be concatenated (?) with the prefix to become a receiver's
name. I do :
char *temp = (char *) malloc(sizeof(x->prefix)+ sizeof(int));
sprintf(temp, "%s%d", x->prefix->s_name, av+0);
x->target = gensym(temp);
free(temp); // BTW, if you think it's dirty, you can give me a better
if (debug) post("List sent to %s", x->target->s_name);
and i know it's not good 'cause i'm messing *char & *t_symbol...
Any help ?