MCPcopy Create free account
hub / github.com/andreasfertig/programming-with-cpp20 / Adjust

Method Adjust

06.13-bcd1/main.cpp:25–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23};
24
25int BCD::Adjust(int v)
26{
27 // Ok, not that sophisticated
28 if(v > 9 || v < 0) { return 0; }
29 return v;
30}
31
32int main()
33{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected