添加注释

This commit is contained in:
朱毅骏 2021-08-25 14:33:11 +08:00
parent e2fe2e07bc
commit d79408ee5b

View File

@ -39,6 +39,7 @@ std::ostream &operator<<(std::ostream &os, const baseDMA &rs) {
}
lacksDMA::lacksDMA(const char *c, const char *l, int r) : baseDMA(l, r) {
//strncpy用于字符串复制
std::strncpy(color, c, 39);
color[39] = '\0';
}