DTSEARCHGETKEYTYPES(3)
β¨ NAME β¨
okay so bestie, this is the DtSearchGetKeytypes page from the library call manual β and it's literally the function that gives you access to the Keytypes array for a DtSearch database. iconic behavior, no cap π
πΈ SYNOPSIS πΈ
copy these lines exactly, iykyk:
#include &<Dt/Search.h>
int DtSearchGetKeytypes(
char *dbname,
int *ktcount,
DtSrKeytype **keytypes);
π¦ DESCRIPTION π¦
DtSearchGetKeytypes returns a pointer to the keytypes array of the specified database. that's the main character move β¨
you're allowed to modify the is_selected member of any DtSrKeytype β go off, customize that one β but do not alter any other member values. like, hands off the rest, fr fr π
this function may be called anytime after DtSearchInit. anytime, bestie. after init, you're cleared for takeoff π«Ά
π ARGUMENTS π
dbnameβ tells the function which database you want the keytypes for. it's any one of the database name strings from the array returned fromDtSearchInitorDtSearchReinit. ifdbnameisNULL, the first database name string in the array is used β default queen behavior πktcountβ this is the address of the integer where the keytypes array size will be stored. so yes, it's giving βhere's where you put the countβ π₯keytypesβ this is the address where the pointer to the keytypes array will be stored. it's the spot for the pointer, periodt π―
π RETURN VALUE π
Returns DtSrOK and keytypes pointer and size. slay β
Any API function can also return DtSrREINIT or the return codes for fatal engine errors, as well as messages on the MessageList, at any time. so yeah, keep an eye out β API functions can surprise you like that π
π SEE ALSO π
final footer vibe: DtSearchGetKeytypes(library call) β that's the library call manual page, bestie. no date was included in the footer, so we're not inventing one, periodt ππ
π¦ where this page comes from
- nixos 26.05: cde 2.5.3
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms