home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / diverses / text_cla / cpt.man < prev    next >
Encoding:
Text File  |  1992-05-12  |  3.9 KB  |  193 lines

  1. NAME
  2.         FioCheckFileClear - Check if a file exists
  3.  
  4. SYNOPSIS
  5.  
  6.         #include <stdio.h>
  7.         #include <errno.h>
  8.         #include <sys/types.h>
  9.         #include <sys/stat.h>
  10.         #include <sys/timeb.h>
  11.         #include <fio.h>
  12.  
  13.         SHORT APIENTRY
  14.         MemHepDeque(psHeap,psPriority,ppvData)
  15.         HEAP_P psHeap;
  16.         PSHORT psPriority;
  17.         PVOID * ppvData;
  18.  
  19. DESCRIPTION
  20.  
  21.         The priority and pvData from psHeap -> psHeapData[0] are
  22.         returned.  The heap is adjusted as necessary after the
  23.         call.
  24.  
  25.         HEAP_P  psHeap;    /* main heap structure */
  26.         PVOID   pvData;    /* for MemHepDeq() */
  27.         SHORT   sPriority; /* for MemHepDeq() */
  28.  
  29.         C_STATUS = MemHepInit(&psHeap,10);  /* init for 10 members */
  30.         
  31.         C_STATUS = MemHepEnq(psHeap, 7, ptrToData);  /* prio = 7 */
  32.  
  33.         C_STATUS = MemHepDeq(psHeap, &sPriority, &pvData);
  34.  
  35.  
  36. RESOURCE NAME
  37.  
  38.         MEMLIB.LIB
  39.  
  40. DIAGNOSTICS
  41.  
  42.         C_OK      = element returned
  43.         C_NOTOK = heap empty
  44.  
  45.  
  46. NAME
  47.         MemHepDown - adjusts a heap after a deque
  48.  
  49. SYNOPSIS
  50.  
  51.         #include <memincs.h>
  52.  
  53.         SHORT APIENTRY
  54.         MemHepDown(psHeap, sRoot)
  55.         HEAP_P psHeap;
  56.         SHORT sRoot;
  57.  
  58. DESCRIPTION
  59.  
  60.         Adjusts heap psHeap starting from sRoot.  This routine is
  61.         called by MemHepDeque() and there is not reason to call it
  62.         in your application.
  63.       
  64. RESOURCE NAME
  65.  
  66.         MEMLIB.LIB
  67.  
  68. DIAGNOSTICS
  69.  
  70.         C_OK      - always returned
  71.  
  72.  
  73. NAME
  74.         MemHepEnque - adds an element and its priority to a heap
  75.  
  76. SYNOPSIS
  77.  
  78.         #include <memincs.h>
  79.  
  80.         SHORT APIENTRY
  81.         MemHepEnque(psHeap,sPriority,pvData)
  82.         HEAP_P psHeap;
  83.         SHORT  sPriority;
  84.         PVOID  pvData;
  85.  
  86. DESCRIPTION
  87.  
  88.         Adds pvData (pointer) with sPriority to heap in psHeap.
  89.       
  90. RESOURCE NAME
  91.  
  92.         MEMLIB.LIB
  93.  
  94. DIAGNOSTICS
  95.  
  96.         C_OK      = element added
  97.         C_NOTOK = element not added, heap full
  98.  
  99. NAME
  100.         MemHepInit - initialize a heap before use
  101.  
  102. SYNOPSIS
  103.  
  104.         #include <memincs.h>
  105.  
  106.         SHORT APIENTRY
  107.         MemHepInit(ppsHeap, sNumElms)
  108.         HEAP_PP  ppsHeap;
  109.         SHORT    sNumElms;
  110.  
  111. DESCRIPTION
  112.  
  113.         Initializes a heap through (*ppsHeap) to have sNumElms elements.
  114.         
  115.         The heap is implemented in MemHep*** functions by using a header
  116.         structure (HEAP_T) which contains a pointer to an array of
  117.         data structures (HEAP_DATA_T).   MemHepInit() must be called
  118.         prior to any of the other MemHep*** functions.
  119.  
  120.         HEAP_P  psHeap;    /* main heap structure */
  121.         PVOID   pvData;    /* for MemHepDeq() */
  122.         SHORT   sPriority; /* for MemHepDeq() */
  123.  
  124.         C_STATUS = MemHepInit(&psHeap,10);  /* init for 10 members */
  125.         
  126.         C_STATUS = MemHepEnq(psHeap, 7, ptrToData);  /* prio = 7 */
  127.  
  128.         C_STATUS = MemHepDeq(psHeap, &sPriority, &pvData);
  129.  
  130.  
  131. RESOURCE NAME
  132.  
  133.         MEMLIB.LIB
  134.  
  135. DIAGNOSTICS
  136.  
  137.         C_OK      - always returned
  138.  
  139.  
  140. NAME
  141.         MemHepSwap - swaps two HEAP_DATA_T elements
  142.  
  143. SYNOPSIS
  144.  
  145.         #include <memincs.h>
  146.  
  147.         SHORT APIENTRY
  148.         MemHepSwap(psHeap1,psHeap2)
  149.         HEAP_DATA_P  psHeap1;
  150.         HEAP_DATA_P  psHeap2;
  151.  
  152. DESCRIPTION
  153.  
  154.         Uses memcpy() to swap two HEAP_DATA_T elements.
  155.       
  156. RESOURCE NAME
  157.  
  158.         MEMLIB.LIB
  159.  
  160. DIAGNOSTICS
  161.  
  162.         C_OK      - always returned
  163.  
  164.  
  165. NAME
  166.         MemHepUp - adjusts a heap after a Enque
  167.  
  168. SYNOPSIS
  169.  
  170.         #include <memincs.h>
  171.  
  172.         SHORT APIENTRY
  173.         MemHepUp(psHeap)
  174.         HEAP_P  psHeap;
  175.  
  176. DESCRIPTION
  177.  
  178.         Adjuts a heap through psHeap after a MemHepEnque() call.
  179.  
  180.         This is an MemHep*** internal function and there should
  181.         not be any reason to call this from your program.
  182.       
  183. RESOURCE NAME
  184.  
  185.         MEMLIB.LIB
  186.  
  187. DIAGNOSTICS
  188.  
  189.         C_OK      - always returned
  190.  
  191.  
  192.  
  193.