Frees the dynamic memory that was allocated by the if_nameindex Subroutine.
Library (libc.a)
#include <net/if.h>
void if_freenameindex (struct if_nameindex *ptr);
The ptr parameter is a pointer returned by the if_nameindex subroutine. After the if_freenameindex subroutine has been called, the application must not use the array of which ptr is the address.
Item | Description |
---|---|
ptr | Pointer returned by the if_nameindex subroutine |