hi Ben,
use image1_src->s_name (but only after making sure image1_src is not null, because you have declared it as A_DEFSYM).
Krzysztof
Ben Bogart - FMPM/F1999 wrote: ...
I'm trying to build a PD method for this SDL function:
SDL_Surface *IMG_Load(const char *file);
problem is I can't figure out how to pass the symbol argument as a filename which IMG_Load expects. Here is my current method:
void load_images(mystruct *x, t_symbol* image1_src, t_symbol* image2_src) { /* Symbol pointer stuff */
image1 = IMG_Load( (char *) image1_src );