if_freenameindex Subroutine

Purpose

Frees the dynamic memory that was allocated by the if_nameindex Subroutine.

Library

Library (libc.a)

Syntax

#include <net/if.h>

void if_freenameindex (struct if_nameindex *ptr);

Description

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.

Parameters

Item Description
ptr Pointer returned by the if_nameindex subroutine