answersLogoWhite

0

In short, you don't. strncpy is deemed unsafe as it has potential to cause buffer overruns. To copy strings safely in C++, use std::string instead.

For examples and syntax, see related links, below.

User Avatar

Wiki User

11y ago

What else can I help you with?