1MONGOC_URI_GET_OPTION_AS_UTF8(3)MongoDB C DriverMONGOC_URI_GET_OPTION_AS_UTF8(3)
2
3
4
6 mongoc_uri_get_option_as_utf8 - mongoc_uri_get_option_as_utf8()
7
9 const char *
10 mongoc_uri_get_option_as_utf8 (const mongoc_uri_t *uri,
11 const char *option,
12 const char *fallback);
13
15 · uri: A mongoc_uri_t.
16
17 · option: The name of an option, case insensitive.
18
19 · fallback: A default value to return.
20
22 Returns the value of the URI option if it is set and of the correct
23 type (string). This value is a pointer into the URI's internal buffer,
24 and is only valid until the URI is modified or freed. If the option is
25 not set, or set to an invalid type, returns fallback.
26
28 MongoDB, Inc
29
31 2017-present, MongoDB, Inc
32
33
34
35
361.13.1 Jan 24, 2019 MONGOC_URI_GET_OPTION_AS_UTF8(3)