Yes, I implemented your solution but in this case I don't use pjsip functionality. Perhaps, the problem is present somewhere in pjsip. It's using newlib, do you know if this problem becomes from newlib ? Thanks Samuel Benny Prijono a ?crit : > Samuel Vinson wrote: > >> Hi, >> >> On windows, when I use (len = 0, the case of empty pj_str) >> printf("%.*s%s<%s:>\n",len,(char *)NULL, (len?" " : ""), "sip"); >> I obtain and it's correct: >> <sip:> >> >> when I use >> pj_ansi_snprintf(ptr, 40, "%.*s%s<%s:>", len, (char *)NULL, (len?" >> " : ""),"sip"); >> printf("%s", ptr); >> I obtain and it's correct: >> <sip:> >> >> On nintendo DS, when >> I use the same statement, I obtain : >> - printf -> (null)<sip:> >> - pj_ansi_snprintf -> (null)<sip:> >> >> Where do you think is the problem ? >> - libc ? >> - gcc ? >> > > > It's libc problem (maybe it's using uC-libc or newlib?) > > >> Because this problem I must define force_client field :-( >> > > What if you specify a display name in account id, like: > > acc.id = pj_str("Name <sip:name at host>"); > > -benny > > >> Thanks >> >> Samuel >> > > > > > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > >