当前位置: 代码迷 >> 综合 >> char* 转化为 unsigned char*
  详细解决方案

char* 转化为 unsigned char*

热度:83   发布时间:2023-11-26 20:18:11.0

一个函数中要求传入const unsigned char*,但是我只有const char[]

const char* pBuf = “hellow world”;
unsigned char * pTmp = (unsigned char *)pBuf;

 

  相关解决方案