测试代码: char buf[64] = { 0 }; strerror_r(9, buf, sizeof(buf) - 1); std::cout << buf << std::endl; // buf是空