Previous section.

Technical Standard: Networking Services (XNS), Issue 5.2 Draft 2.0
Copyright © 1999 The Open Group

NAME

if_freenameindex - free memory allocated by ifnameindex()

SYNOPSIS


#include <net/if.h>

void if_freenameindex(struct if_nameindex *ptr);


DESCRIPTION

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.

ERRORS

[EFAULT]
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.

SEE ALSO

getsockopt(), f_indextonamef_indextoname(), if_nameindex(), if_nametoindex(), setsockopt(), <net/if.h>.

CHANGE HISTORY

First released in Issue 5.2.

Contents Next section Index