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 );
1 – Arguments
ptr Points to an array of structures returned by the if_nameindex() function.
2 – Description
The if_freenameindex() function frees dynamic memory allocated to the array of interface names and indexes that the if_nameindex() function returned.