if_freenameindex - free memory allocated by
#include <net/if.h> void if_freenameindex(struct if_nameindex *ptr);
Argument if_nameindex must be a pointer that was returned by
if_nameindex(). Function if_freenameindex()frees the memory allocated by if_nameindex(). After if_freenameindex()has been called, the application should not use the array of which ptr is the address.
- Argument if_nameindex is not a pointer that was returned by
if_nameindex(). Note that implementations need not always detect this fault. If an implementation does not do so, the results are unspecified.
getsockopt(), f_indextoname f_indextoname(), if_nameindex(), if_nametoindex(), setsockopt(), <net/if.h>.
First released in Issue 5.2.