DTMMDBTOCGETPARENTID(3)

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

πŸ’… DtMmdbTocGetParentId πŸ’…

okay so this is DtMmdbTocGetParentId, a library call, and she’s here to hand you the object identifier of a parent section. Bestie, we’re doing hierarchy math and we’re doing it cute πŸ’–

🌸 NAME 🌸

DtMmdbTocGetParentId β€” obtains the object identifier of the parent section ✨

πŸ¦‹ SYNOPSIS πŸ¦‹

#include &<DtMmdb.h>
DtMmdbHandle* DtMmdbTocGetParentId(
DtMmdbInfoRequest* request);

πŸŽ€ DESCRIPTION πŸŽ€

The DtMmdbTocGetParentId function returns the object identifier of the section that is parent to the specified section. Iconic behavior, honestly. Use DtMmdbFreeHandle to release the identifier when it is no longer needed β€” like, clean up after yourself, bestie, we love a responsible main character πŸ’…

πŸ“ ARGUMENTS πŸ“

  • request β€” Specifies the bookcase in the bookcase descriptor field and the section’s Database Engine identifier, in the primary_oid field. Both of those details matter, so don’t skip ’em.

🌈 RETURN VALUE 🌈

If DtMmdbTocGetParentId completes successfully, it returns the object identifier of the parent section. Slay. If it fails, it returns a NULL pointer. Not slay, but important to know.

πŸ‘‘ EXAMPLE πŸ‘‘

The following shows how a DtMmdbTocGetParentId call might be coded.

DtMmdbInfoRequest request;
/* fill the request here */
DtMmdbHandle* parent = DtMmdbTocGetParentId(&&request);
if  (parent != DtMmdbGroundId) {
   if (parent == 0) {
       /* invalid request */
   } else {
     /* parent points at the parent section */
   }
} else { /* this section is the root section */
 }

πŸ‘€ SEE ALSO πŸ‘€

TO BE SUPPLIED


Catch you later, bestie β€” this was the DtMmdbTocGetParentId(library call) page πŸ«ΆπŸ’… and the footer vibe is just that same library-call label, with no extra source/version/date line hiding here today, periodt ✨

πŸ“¦ where this page comes from