Boost Users :
Subject: Re: [Boost-users] Conversion from numeric type to const char*
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2012-01-30 09:05:19
2012/1/30 Claude <clros_at_[hidden]>
> Ok. I could use strcpy() to copy the .c_str() result in my char array?
You could, although it's usually better to keep std::string and let it care
about memory management. When you need to pass const char* to a C function
(e.g., puts), use c_str().
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net