---
name: "rtf_get_version"
section: "3"
platform: "linux"
package: "librtfilter-dev"
version: "1.1-4+b3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rtf_get_version"
---

# rtf\_get\_version(3)

Returns the version of the library

## NAME

rtf\_get\_version - Returns the version of the library

## SYNOPSIS

**#include \<rtfilter.h\>**

**size\_t rtf\_get\_version(char \****string***, size\_t** *len***, unsigned int** *line***);**\

## DESCRIPTION

This function fills in *string* the version of the library if *line* is 0. It fills at most *len* character in *string* including the terminating null byte (' '). If the implementation of library depends on other non-standard libraries, it will returns the version of them in subsequent lines (*line* \> 0). If there is no more dependency, nothing is copied on *string* and 0 is returned by the function.

## RETURN VALUE

Returns the number of characters copied on *string*.
