MCPcopy Create free account
hub / github.com/KaisenAmin/c_std / algorithm_inc_ulong_long

Function algorithm_inc_ulong_long

algorithm/algorithm.c:2378–2380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2376 size_t count = 1;
2377
2378 for (size_t i = 1; i < num; ++i) {
2379 if (comp(dst + (count - 1) * size, src + i * size) != 0) {
2380 memcpy(dst + count * size, src + i * size, size);
2381 ++count;
2382 ALGORITHM_LOG("[algorithm_unique_copy] Info: Unique element %zu copied.", count);
2383 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected