home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Programming / tek / mem / destroy.c < prev    next >
Encoding:
C/C++ Source or Header  |  2001-05-12  |  328 b   |  27 lines

  1.  
  2. #include "tek/mem.h"
  3.  
  4. /* 
  5. **    TEKlib
  6. **    (C) 2001 TEK neoscientists
  7. **    all rights reserved.
  8. **
  9. **    TINT TDestroy(TAPTR handle)
  10. **
  11. **    destroy a generic handle.
  12. **
  13. */
  14.  
  15. TINT TDestroy(TAPTR object)
  16. {
  17.     if (object)
  18.     {
  19.         if (((THNDL *) object)->destroyfunc)
  20.         {
  21.             return (*((THNDL *) object)->destroyfunc)(object);
  22.         }
  23.     }
  24.  
  25.     return 0;
  26. }
  27.