gpt4 book ai didi

C: ether_aton 返回类型

转载 作者:行者123 更新时间:2023-11-30 21:20:33 27 4
gpt4 key购买 nike

我想知道 ether_aton() 函数的返回类型是什么?

来自 Linux 手册页:

ether_aton() converts the 48-bit Ethernet host address asc from the standard hex-digits-and-colons notation into binary data in network byte order and returns a pointer to it in a statically allocated buffer, which subsequent calls will overwrite. ether_aton() returns NULL if the address is invalid."

最佳答案

man page中提到本身

struct ether_addr *ether_aton(const char *asc);

关于C: ether_aton 返回类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37114652/

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