3 ms·
I'd assume memcpy. But a more serious answer is to use C++ strings instead, lol. Writing "C-like C++" is probably more beneficial. I do realize that a lot of
by dragontamer 5y ago
I'd assume memcpy.
But a more serious answer is to use C++ strings instead, lol. Writing "C-like C++" is probably more beneficial.
I do realize that a lot of people prefer to write in pure C (ex: Linux kernel team), but more and more people are realizing the benefits of C-like C++ code.
- andrewmcwatters 5y agoYeah, I would assume as much, too. When I last worked in C, there was no de facto way to do this since so many functions just worked on null termination.