On 2017-01-11 06:37, Ricky Graham wrote:
> void *pclass_new(t_symbol *s) {
> post("%s", *s); //this prints “D” to the console
> }

oh my!

how about, looking up the definition of t_symbol in m_pd.h?
    typedef struct _symbol
    {
      char *s_name;
      struct _class **s_thing;
      struct _symbol *s_next;
    } t_symbol;

so the *only* proper way to access the string within a symbol is by
dereferencing the s_name member.

    post("%s", s->s_name);

fgam,df
IOhannes

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
https://lists.puredata.info/listinfo/pd-list

Reply via email to