---
name: "rtf_get_type"
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_type"
---

# rtf\_get\_type(3)

Gets the input or output data type of a filter

## NAME

rtf\_get\_type - Gets the input or output data type of a filter

## SYNOPSIS

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

**int rtf\_get\_type(hfilter filt, int in);**\

## DESCRIPTION

This function returns the data type of the input or output of the filter *filt* depending on *in*. If *in* is zero, then the returned type is the output data type. If *in* is non-zero, the function returns the input data type of the filter.

In case of the success, the returned type will be one of the constants (**RTF\_FLOAT**, **RTF\_DOUBLE**, **RTF\_CFLOAT** or **RTF\_CDOUBLE**) defined in the man page of [**rtf\_create\_filter**(3)](/rtf_create_filter/3.md).

## RETURN VALUE

Returns the requested data type in case of success, -1 otherwise.

## SEE ALSO

[**rtf\_create\_filter**(3)](/rtf_create_filter/3.md)
