## IupGetCallback

Returns the callback associated to an event.

### Parameters/Return

    Icallback IupGetCallback(Ihandle* ih, const char *name); [in C]
    [There is no equivalent in Lua]

ih: identifier of the interface element.
name: attribute name of the callback.

Returns: the callback or NULL if there is none.

### Notes

This function replaces the deprecated combination:

    IupGetFunction(IupGetAttribute(ih, name))

If an event is associated using IupSetFunction and IupSetAttribute, the IupGetCallback also returns the correct callback. So old applications work normally.

### See Also

IupSetCallback, IupGetFunction