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.
ptr | Pointer returned by the if_nameindex subroutine |
if_nametoindex Subroutine, if_indextoname Subroutine, and if_nameindex Subroutine.
Subroutines Overview in AIX 5L Version 5.2 General Programming Concepts: Writing and Debugging Programs.