printf ("%.*s", my_pjstr.slen, my_pjstr.ptr); Regards, Dan On Mon, 2012-01-30 at 14:15 +0000, sjs205.linux at googlemail.com wrote: > Hello all, > > What is the best way to print the contents of pj_str_t to stdout? I can > not find a particular function to do this and am sure that the standard > printf and puts will fail due to the lack of \0. > > Is there a standard way to print? > > Best regards, > > Steven > > > > _______________________________________________ > 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