MCPcopy Create free account
hub / github.com/Apress/beginning-cpp20 / db_disconnect

Function db_disconnect

Exercises/Modules/Chapter 16/Exer16_06/DB.cpp:47–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47void db_disconnect(DB_CONNECTION* connection)
48{
49 // reinterpret_cast<> is used to cast between pointers/references of
50 // unrelated types (such as void* and Database*)
51 reinterpret_cast<Database*>(connection)->disconnect();
52}
53
54DB_QUERY_RESULT* db_query(DB_CONNECTION* connection, const char* query)
55{

Callers 1

mainFunction · 0.70

Calls 1

disconnectMethod · 0.45

Tested by

no test coverage detected