DTMMDBSECTIONGETLOC(3)
β¨ NAME β¨
okay so bestie, this is DtMmdbSectionGetLoc from the library call manual β and it's literally the function that obtains a section's locator π
.
π«Ά SYNOPSIS π«Ά
#include &<DtMmdb.h>
const char* DtMmdbSectionGetLoc(
DtMmdbInfoRequest* request);
π DESCRIPTION π
The DtMmdbSectionGetLoc function returns the logical identifier for the specified section. Bestie, do not use the free function on the returned pointer. No table lookup is involved β it's giving direct, lowkey simple.
The space used by the returned locator pointer is likely to be reused by the database engine when any of the API functions are invoked again. You must make a copy of the content if you want to retain it across multiple API calls. This behavior holds true for all functions that return a const char* pointer. π
So like⦠if you need that string to survive past the next API call, copy it. Periodt.
π ARGUMENTS π
requestβ specifies the bookcase in thebookcase descriptorfield and the section's Database Engine (object) identifier in theprimary_oidfield. The DtInfo Database Engine identifier is assigned to the section when it is stored. π«Ά
π RETURN VALUE π
If DtMmdbSectionGetLoc completes successfully, it returns a pointer to a NULL-terminated locator string. If it fails, it returns a NULL pointer. That's the whole vibe check π
π¦ EXAMPLE π¦
The following shows how a DtMmdbSectionGetLoc call might be coded.
const char* locator = 0;
DtMmdbInfoRequest request;
int bd = DtMmdbGetBookCase(myInfoLibPtr, "myBase");
if ( bd >= 0) {
request.bookcase_descriptor = bd;
request.sequence_num = 1;
request.primary_oid = DtMmdbBookGetTocObjectId(&&request);
locator = DtMmdbSectionGetLoc(&&request);
}
π SEE ALSO π
TO BE SUPPLIED β yes bestie, that's literally what it says πΈ.
π okay that's the whole page! source/version/date tea: the footer just repeats the DtMmdbSectionGetLoc(library call) tag, so there's no extra version or date info to spill β mwah π
π
π¦ 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