RTF_GET_TYPE(3)

✨ RTF_GET_TYPE ✨

okay bestie, welcome to the rtf_get_type page from the rtfilter library manual, section 3 (that's the library-functions girlies, iykyk) πŸ’…


🌸 NAME 🌸

rtf_get_type β€” bestie, this one gets you the input or output data type of a filter πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <rtfilter.h>

int rtf_get_type(hfilter filt, int in);

πŸ’– DESCRIPTION πŸ’–

so like, this function returns the data type of the input or the output of the filter filt, and which one you get depends on in 🫢

  • if in is zero, then the type you get back is the output data type ✨
  • if in is non-zero, the function hands you the input data type of the filter 🌈

and when it goes well?? the returned type is gonna be one of these constants, no cap:

  • RTF_FLOAT
  • RTF_DOUBLE
  • RTF_CFLOAT
  • RTF_CDOUBLE

all of which are defined in the man page of rtf_create_filter(3) β€” go check her out, she's the source of truth πŸ‘‘


πŸ‘‘ RETURN VALUE πŸ‘‘

returns the requested data type when it's a slay (success), and -1 otherwise 😭


πŸ”₯ SEE ALSO πŸ”₯


mwah πŸ’œ this page came to you courtesy of EPFL, dated 2010, and it lives at RTF_GET_TYPE(3) in the rtfilter library β€” take care of her, she's iconic β­πŸŽ€

πŸ“¦ where this page comes from