can someone please convert this line:
strcpy_s(this->name, SIZE_NAME, d.getName());
to a strcpy function instead of strcpy_s?
thank you
can someone please convert this line:
strcpy_s(this->name, SIZE_NAME, d.getName());
to a strcpy function instead of strcpy_s?
thank you
strcpy(this->name, d.getName());
That was easy
Here is an example:
if (strlen(d.getName()) >= SIZE_NAME) {
throw std::runtime_error("There was a bug. Contact your programmer and tell them to use std::string");
}
strcpy(this->name, d.getName());