home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / sd386v50.zip / sd386src.zip / XSRVFILE.C < prev    next >
Text File  |  1995-11-02  |  3KB  |  45 lines

  1. /*****************************************************************************/
  2. /* File:                                             IBM INTERNAL USE ONLY   */
  3. /*   xsrvfile.c                                                           827*/
  4. /*                                                                           */
  5. /* Description:                                                              */
  6. /*                                                                           */
  7. /*  some x-server file access functions.                                     */
  8. /*                                                                           */
  9. /* History:                                                                  */
  10. /*                                                                           */
  11. /*   06/23/93 Created.                                                       */
  12. /*                                                                           */
  13. /*...                                                                        */
  14. /*... 06/04/93  827   Joe       Add remote debug support.                    */
  15. /*...                                                                        */
  16. /*****************************************************************************/
  17. #include "all.h"
  18.  
  19. /*****************************************************************************/
  20. /* Talloc                                                                 521*/
  21. /*                                                                           */
  22. /* Description:                                                              */
  23. /*   allocate some memory and clear the area.                                */
  24. /*                                                                           */
  25. /* Parameters:                                                               */
  26. /*   size       size of space required.                                      */
  27. /*                                                                           */
  28. /* Return:                                                                   */
  29. /*   void *                                                                  */
  30. /*                                                                           */
  31. /*****************************************************************************/
  32.   void *
  33. Talloc(UINT size)
  34. {
  35.  void *p = malloc(size);                /* allocate the storage.             */
  36.  if(p)                                  /* clear the storage.                */
  37.   memset(p,0,size);                     /*                                   */
  38.  return(p);                             /* return pointer to storage.        */
  39. }
  40.  
  41. void *Tfree(void *ptr)
  42. {
  43.  free(ptr);
  44. }
  45.