RTF_GET_VERSION(3)
β¨ NAME β¨
rtf_get_version β bestie, this one hands you the version of the library, like a little glow-up receipt π
πΈ SYNOPSIS πΈ
#include <rtfilter.h>
size_t rtf_get_version(char *string, size_t len, unsigned int line);
π¦ DESCRIPTION π¦
okay so picture this: you call this function and, if line is 0, it fills in string with the version of the library. slay. that's the main character info right there π
it fills at most len characters in string, and yes bestie that count includes the terminating null byte (' ') β the NUL is invited to the party too, no gatekeeping.
now here's the plot twist π if the implementation of the library depends on other non-standard libraries, it will return the version of those in the subsequent lines β that's line > 0, one dependency per line, very organized of them honestly.
and if there is no more dependency left? nothing gets copied onto string, and the function returns 0. that's it, that's the whole vibe, the list is done π
π RETURN VALUE π
it returns the number of characters copied onto string. that's the number, that's the tea π
lowkey iconic of EPFL to ship this back in 2010 with the rtfilter library β anyway bestie, that's RTF_GET_VERSION(3) wrapped, go read the version string, mwah π«Άβ¨
π¦ where this page comes from
- debian bookworm: librtfilter-dev 1.1-4+b2
- debian trixie: librtfilter-dev 1.1-4+b3
- ubuntu jammy: librtfilter-dev 1.1-4build1
- ubuntu noble: librtfilter-dev 1.1-4build2
- ubuntu questing: librtfilter-dev 1.1-4build2
- Copyright 2010 (c) EPFL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms