mongoc_server_api_version_from_string - Man Page

mongoc_server_api_version_from_string()

Synopsis

bool
mongoc_server_api_version_from_string (const char *version,
                                       mongoc_server_api_version_t *out);

Given a string version, populates out with the equivalent mongoc_server_api_version_t if version represents a valid API version.

Parameters

Returns

True on success, false on failure. On success, out is populated with the converted version string. On failure, out is not altered.

Author

MongoDB, Inc

Info

Jan 06, 2022 1.20.1 libmongoc