xdr_free Subroutine

Purpose

Deallocates, or frees, memory.

Library

C Library (libc.a)

Syntax

#include <rpc/xdr.h>

void xdr_free ( proc,  objp)
xdrproc_t proc;
char *objp;

Description

The xdr_free subroutine is a generic freeing routine that deallocates memory. The proc parameter specifies the eXternal Data Representation (XDR) routine for the object being freed. The objp parameter is a pointer to the object itself.

Note: The pointer passed to this routine is not freed, but the object it points to is freed (recursively).

Parameters

Item Description
proc Points to the XDR stream handle.
objp Points to the object being freed.