コード例 #1
0
ファイル: LUtil.c プロジェクト: BackupTheBerlios/artbody-svn
      h->name = CopyString(mem,name);

      if (strlen(name) == 0)

         HError(15213,"ReadLMHeader: Field %d name is empty", (*hdr)->numFields);

      h->value = CopyString(mem,value);
コード例 #2
0
ファイル: HLabel.c プロジェクト: nlphacker/OpenSpeech
/* EXPORT->PrintNameTabStats: print out statistics on hash table usage */
void PrintNameTabStats(void)
{
   printf("Name Table Statistics:\n");
   printf("Total Accesses: %ld\n", numAccesses);
   printf("Ave Search Len: %f\n",(float)numTests/(float)numAccesses); 
   PrintHeapStats(&namecellHeap);
   printf("\n"); fflush(stdout);
}
コード例 #3
0
ファイル: HMem.c プロジェクト: DorisGao/personal-uni
/* EXPORT->PrintAllHeapStats: print summary stats for all memory heaps */
void PrintAllHeapStats(void)
{
   MemHeapRec *p;
   
   printf("\n---------------------- Heap Statistics ------------------------\n");
   for (p = heapList; p != NULL; p = p->next)
      PrintHeapStats(p->heap);
   printf(  "---------------------------------------------------------------\n");
}