gpt4 book ai didi

c - WIN32和其他c字符串的区别

转载 作者:太空狗 更新时间:2023-10-29 15:36:56 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
Difference between WIN32 and other c string

我在一个小程序中获取了这段代码来读取文件

 #ifdef WIN32  

unsigned char *buffer = (unsigned char *)alloca((unsigned int)ui.length);
#else

unsigned char buffer[ui.length];
#endif

谁能告诉我,为什么 win32 平台使用指针而其他平台使用字符数组?

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com