Outputting a string through an outlet
Jan 22 2009 | 3:47 pm
Hello list:
I am having trouble outputting a string through an outlet. It outputs once on the first run through, but then ceases to continue working.
Below is the culprit section of code, any insight would be greatly appreciated.
---BEGIN CODE---
numba = atoi(parsed);
output = (char *)malloc(strlen("/rh/st 0 4096"));
sprintf(output, "/rh/st %d 0n", calcBoardNo(currentTrack, numba));
s->s_name = output;
free(output);
outlet_anything(x->outlet_1, s, 0, NULL);
---END CODE---