pj_str_t to char *

KA
Kabil Akpınar
Thu, Aug 12, 2010 2:43 PM

How to convert a pj_str_t to char *, what is your suggestion? In fact there
are lots of approaches but what is the way of doing this under pjsip?

--
Kabil Akpınar

How to convert a pj_str_t to char *, what is your suggestion? In fact there are lots of approaches but what is the way of doing this under pjsip? -- Kabil Akpınar
TS
tarun sharma
Thu, Aug 12, 2010 2:59 PM

doesn't pj_str_t already have a char* member named "prt"?? Assming u
want to store string n the resulting char*.

2010/8/12 Kabil Akpınar kabilakpinar@gmail.com:

How to convert a pj_str_t to char *, what is your suggestion? In fact there
are lots of approaches but what is the way of doing this under pjsip?

--
Kabil Akpınar


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org

doesn't pj_str_t already have a char* member named "prt"?? Assming u want to store string n the resulting char*. 2010/8/12 Kabil Akpınar <kabilakpinar@gmail.com>: > How to convert a pj_str_t to char *, what is your suggestion? In fact there > are lots of approaches but what is the way of doing this under pjsip? > > -- > Kabil Akpınar > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > >
AO
Alejandro Orellana
Thu, Aug 12, 2010 3:07 PM

One thing worth to mention is  that  prt member is  NOT NULL terminated.

On Aug 12, 2010, at 10:59 AM, tarun sharma wrote:

doesn't pj_str_t already have a char* member named "prt"?? Assming u
want to store string n the resulting char*.

2010/8/12 Kabil Akpınar kabilakpinar@gmail.com:

How to convert a pj_str_t to char *, what is your suggestion? In fact there
are lots of approaches but what is the way of doing this under pjsip?

--
Kabil Akpınar


Visit our blog: http://blog.pjsip.org

pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org


Alejandro Orellana
Savant Systems, LLC
770 Main Street
Osterville, Ma. 02655
(508) 683-2547 (W)
(508) 683-2647 (F)
Alejandro.Orellana@savantav.com

Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.

One thing worth to mention is that prt member is NOT NULL terminated. On Aug 12, 2010, at 10:59 AM, tarun sharma wrote: > doesn't pj_str_t already have a char* member named "prt"?? Assming u > want to store string n the resulting char*. > > 2010/8/12 Kabil Akpınar <kabilakpinar@gmail.com>: >> How to convert a pj_str_t to char *, what is your suggestion? In fact there >> are lots of approaches but what is the way of doing this under pjsip? >> >> -- >> Kabil Akpınar >> >> _______________________________________________ >> Visit our blog: http://blog.pjsip.org >> >> pjsip mailing list >> pjsip@lists.pjsip.org >> http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org >> >> > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip@lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org ------ Alejandro Orellana Savant Systems, LLC 770 Main Street Osterville, Ma. 02655 (508) 683-2547 (W) (508) 683-2647 (F) Alejandro.Orellana@savantav.com Statement of Confidentiality The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.