Initialization and cleanup

Synopsis

The MongoDB C driver must be initialized using mongoc_init before use, and cleaned up with mongoc_cleanup before exiting. Failing to call these functions is a programming error.