I'm a bit unsure about this and the results... but given the following:
....
std::string mystring;
mystring.reserv e(256);
strcpy(mystring .c_str(), "Some string C-style"); // C-style copy
....
Is something like this even legal? I've tested it, and it works,
but I just don't know if its "proper".
of course, I wouldn't use strcpy; I'm inquiring because I'd like to use
BSD read()'s without using char[]'s.
Thanks!
--
Kristofer Pettijohn
kristofer@cyber netik.net
....
std::string mystring;
mystring.reserv e(256);
strcpy(mystring .c_str(), "Some string C-style"); // C-style copy
....
Is something like this even legal? I've tested it, and it works,
but I just don't know if its "proper".
of course, I wouldn't use strcpy; I'm inquiring because I'd like to use
BSD read()'s without using char[]'s.
Thanks!
--
Kristofer Pettijohn
kristofer@cyber netik.net
Comment