1MONGOC_URI_GET_USERNAME(3) libmongoc MONGOC_URI_GET_USERNAME(3)
23
4
NAME
6mongoc_uri_get_username - mongoc_uri_get_username()
7
SYNOPSIS
9const char *
10mongoc_uri_get_username (const mongoc_uri_t *uri);
11
PARAMETERS
13• uri: A mongoc_uri_t.
14
DESCRIPTION
16Fetches the username portion of a URI.
17
RETURNS
19Returns a string which should not be modified or freed if uri has a
20username provided, otherwise NULL.
21
AUTHOR
23MongoDB, Inc
24
COPYRIGHT
262017-present, MongoDB, Inc
2728
29
30
31
1.20.0 Nov 18, 2021 MONGOC_URI_GET_USERNAME(3)