Jump to: navigation, search

Table of Contents >> Programmer's Reference

#include <trsocket.h>

void * tfDeviceClearPointer (ttUserInterface interfaceHandle);

Function Description

tfDeviceClearPointer() will clear the association created by tfDeviceStorePointer() between the interface handle, and the device specific structure allocated in the device driver open function. Call tfDeviceClearPointer() from the driver close function, and then, if the pointer returned by tfDeviceClearPointer() is non-null, free it.



  • Non-zero (void *)
    Success. Pointer to the device driver parameter.
  • NULL (void *)
    No associated device driver pointer on this interface.

Note Note: See also tfDeviceGetPointer() and tfDeviceStorePointer().

Table of Contents >> Programmer's Reference