MCPcopy Create free account
hub / github.com/MultithreadedJSBook/code-samples / is_happycoin

Function is_happycoin

ch1-c-threads/happycoin-threads.c:39–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39bool is_happycoin(uint64_t num) {
40 return is_happy(num) && num % 10000 == 0;
41}
42
43void * get_happycoins(void * arg) {
44 int attempts = *(int *)arg; // <1>

Callers 1

get_happycoinsFunction · 0.70

Calls 1

is_happyFunction · 0.70

Tested by

no test coverage detected