---
name: "mongoc_server_api_version_to_string"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_server_api_version_to_string"
---

# mongoc\_server\_api\_version\_to\_string(3)

## SYNOPSIS

```
const char *
mongoc_server_api_version_to_string (mongoc_server_api_version_t version);
```

Returns the string representation of **version**, or NULL if **version** has no string representation.

## PARAMETERS

- •

  **version**: A *mongoc\_server\_api\_version\_t*

## RETURNS

Returns the string representation of **version** or NULL.  The returned string should not be freed.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
