Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试以下操作:
int length = strlen(input)+1; char * toCrypt = (char*)malloc(length);
其中输入是一些字符串。奇怪的是,有时这确实有效,有时 toCrypt 给出了一个错误的指针......解决方案?