#include #include "ifconfig.h" int main() { std::vector ifcs; ifconfig(ifcs); for (auto& item : ifcs) { printf("%s\nip: %s\nmask: %s\nbroadcast: %s\nmac: %s\n\n", item.name, item.ip, item.mask, item.broadcast, item.mac); } return 0; }