gpt4 book ai didi

将数组转换为字符串 Nesc

转载 作者:行者123 更新时间:2023-11-30 14:23:50 25 4
gpt4 key购买 nike

我想将 uint8_t 数组转换为 NesC 中的 uint32_t

有人知道我该怎么做吗?

最佳答案

我找到的解决方案是使用该函数:

void * memcpy ( void * destination, const void * source, size_t num );

还有一个功能:

void * memset ( void * ptr, int value, size_t num );

在我的代码中,我使用 memcpy 并且它工作正常。感谢所有回答我问题的人

关于将数组转换为字符串 Nesc,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12491556/

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