csapp ch11.2 练习题

由于第1题完美解决了,这个问题就是变成了如何将十六进制字符串转换为整数 代码 #include "csapp.h" #include <arpa/inet.h> void pton(const char * src) { struct in_addr dst; inet_pton(AF_INET, src, (void*)&dst); printf("%s -> 0x%x\
相关文章
相关标签/搜索