Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
39
bool is_happycoin(uint64_t num) {
40
return is_happy(num) && num % 10000 == 0;
41
}
42
43
void * get_happycoins(void * arg) {
44
int attempts = *(int *)arg; // <1>
Callers
1
get_happycoins
Function · 0.70
Calls
1
is_happy
Function · 0.70
Tested by
no test coverage detected