我有两个功能
foo(const string &value)
{
bar(...)
}
bar(const u_char *value, size_t len)
{
// do something
}
如何将 const 字符串转换为 u_char *?我相信我可以通过使用 sizeof() 函数获得 size_t。
非常感谢您的帮助。
最佳答案
关于c++ - 将字符串转换为 u_char*,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10201950/