Frees memory allocated by if_nameindex
void if_freenameindex (struct if_nameindex *ptr);
The argument to this function must be a pointer that was returned by if_nameindex.
The if_nametoindex (if_nametoindex Subroutine) subroutine, if_indextoname (if_indextoname Subroutine) subroutine, and if_nameindex (getgrent, getgrgid, getgrnam, setgrent, or endgrent Subroutine) subroutine.
Subroutines Overview in AIX 5L Version 5.1 General Programming Concepts: Writing and Debugging Programs.