Frees dynamic memory allocated by if_nameindex() to the array of interface names and indexes Format #include <if.h> void if_freenameindex ( struct if_nameindex *ptr );