DTSEARCHMERGERESULTS(3)

πŸ“¦
version 2.5.3 Β· 2 versions
, in nixos 26.05

🌸 NAME 🌸

DtSearchMergeResults β€” Merge two DtSearch results lists into one. This is the library call manual page, bestie 🫢


✨ SYNOPSIS ✨

#include &<Dt/Search.h>
int DtSearchMergeResults(
DtSrResult **targlist,
DtSrResult **srclist);

πŸ’– DESCRIPTION πŸ’–

Okay so DtSearchMergeResults merges the srclist results list into the targlist list using proximity for sort order, and sets the srclist source list pointer to NULL. Slay ✨

This function is used to merge results from separate database searches for presentation to the user as a single results list. It's giving one list, many searches β€” main character energy fr fr πŸ’…

It presumes both lists are initially sorted by ascending proximity. No cap. It does nothing if source list is empty and returns DtSrOK. It moves the source list as is to the target list if the target list is empty and returns DtSrOK. Obsessed with an efficient shortcut.

πŸŽ€ ARGUMENTS πŸŽ€

  • srclist β€” Specifies the results list to be merged into the target list. The source list bestie πŸ’œ
  • targlist β€” Specifies the results list into which the source list is to be merged. The target list bestie 🫢

πŸ”₯ RETURN VALUE πŸ”₯

DtSearchMergeResults returns DtSrERROR if either the srclist pointer or the srclist pointer is NULL. (Yes bestie, that's literally what the page says: srclist twice πŸ’€ I'm not fixing the manpage, I'm just reporting it.)

Otherwise, it returns DtSrOK, indicating a successful merge. Periodt πŸ‘‘

πŸ¦‹ SEE ALSO πŸ¦‹


okay bye bestie β€” this page is DtSearchMergeResults from the library call manual, and the footer just carries that same library call tag with no extra date line to spill. source/version tag: library call; date: not listed on this page. mwah πŸ’‹

πŸ“¦ where this page comes from