Huffman coding: Difference between revisions

m
→‎{{header|C}}: now it compiles with gcc -pedantic -std=c99
m (→‎{{header|C}}: less gccish (hopely) macro way)
m (→‎{{header|C}}: now it compiles with gcc -pedantic -std=c99)
Line 127:
 
heap = _heap_create(BYTES*2, efreqs);
if ( heap == NULL ) return NULL;
 
for(i=0; i < BYTES; i++) if ( efreqs[i] > 0 ) _heap_add(heap, i);