Printing pj_str_t to screen...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Wow, that was quick. Thanks... I have no idea what the identifier in the 
printf does but I will look at it now :D

On 01/30/2012 02:25 PM, Dan Arrhenius wrote:
> 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
>
>
> _______________________________________________
> 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




[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux