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

Method Adjust

06.12-bcd0/main.cpp:33–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31};
32
33int BCD::Adjust(int v)
34{
35 // Ok, not that sophisticated
36 if(v > 9 || v < 0) { return 0; }
37 return v;
38}
39
40int main()
41{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected