Re: [Dev-C++] C++ string to C style char string
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Per W. <pw...@ia...> - 2003-02-14 17:41:05
|
printf("%s\n",string.c_str());
/Per W
On Fri, 14 Feb 2003, Strydom, J. (Jacques) wrote:
> Hello,
>
> I hope someone can help me. I would like to know if there is
> a function, that turns a C++ string, into a null terminated
> C-style character string.
>
> Thank you for any help.
>
> regards
> Jaques Strydom
>
>
> This email and any accompanying attachments may contain confidential and proprietary information. This information is private and protected by law and, accordingly, if you are not the intended recipient, you are requested to delete this entire communication immediately and are notified that any disclosure, copying or distribution, or taking any action based on this information is prohibited.
>
> Emails cannot be guaranteed to be secure or free of errors or viruses. The sender does not accept any liability or responsibility for any interception, corruption, destruction, loss, late arrival or incompleteness of or tampering or interference with any of the information contained in this email or for its incorrect delivery or non-delivery for whatsoever reason or its effect on any electronic device of the recipient.
>
> If verification of this email or any attachment is required, please request a hard-copy version.
>
|