MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / swap

Function swap

contents/huffman_encoding/code/c/huffman.c:34–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void swap(struct tree** lhs, struct tree** rhs) {
35 struct tree* tmp = *lhs;
36 *lhs = *rhs;
37 *rhs = tmp;
38}
39
40/* The two concat functions are horribly inefficient */
41void concat(char** dst, const char* src) {

Callers 5

heap_pushFunction · 0.85
heap_popFunction · 0.85
gaussianEliminationFunction · 0.85
sort_by_bit_reverseFunction · 0.85
graham_scanFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected