Synopsis

(macro) void pdx_SetFuncNULL(void *type, void (*func_ptr)())

Purpose

Set a function pointer to be NULL.

Description

This macro provides a portable way of setting a pointer to a function to NULL. The type argument specifies the type of function return. The following example sets the function pointer ifunc to NULL:

.nf int (*ifunc)();

pdx_SetFuncNULL(int, ifunc); .fi

Input

type

Return type of the function

func_ptr

The function pointer to be set to NULL