vvb2060
2021-05-26 01:21:54 +08:00
committed by John Wu
parent 34e5a7cd24
commit 79e8962854
4 changed files with 97 additions and 39 deletions

View File

@ -10,13 +10,6 @@
using namespace std;
static string rtrim(string &&str) {
// Trim space, newline, and null byte from end of string
while (memchr(" \n\r", str[str.length() - 1], 4))
str.pop_back();
return std::move(str);
}
struct devinfo {
int major;
int minor;