如何编写字符数组“char *buff[]”到c中的文件
饱和度是.....我已经在缓冲区(*buff[])中存储了许多mac地址(一个一个),现在我想一个一个地提取MAC地址并将其写入一个以逗号分隔的文件中c.
帮助!!! 谢谢!
satuation is ..... i've stored many mac addresses (one by one) in the buffer(*buff[]), now i want to extract the MAC addresses one by one and write it to a FILE seperated by COMMA in c.
HELP!!!
THNXXX!!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它们是字符串,您可以使用类似的内容:
如果它们不是字符串,您可能应该更详细地指定数据。无论如何,逻辑都是一样的,唯一会改变的是输出 MAC 地址的方式。
如果数组未满,请确保使用计数变量来控制循环而不是数组大小。
If they're strings, you can just use something like:
If they're not strings, you should probably specify the data in greater detail. In any case, the logic is the same, the only thing that will change is the way in which you output the MAC address.
And if the array isn't full, then make sure you use a count variable to control the loop rather than the array size.