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\
相關文章
相關標籤/搜索