Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dtmmdbsectiongetloc(3) [hpux man page]

DtMmdbSectionGetLoc(library call)										 DtMmdbSectionGetLoc(library call)

NAME
DtMmdbSectionGetLoc -- 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. Do not use the free function on the returned pointer. No table lookup is involved. 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. ARGUMENTS
request Specifies the bookcase in the bookcase descriptor field and the section's Database Engine (object) identifier in the primary_oid field. 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. 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 DtMmdbSectionGetLoc(library call)

Check Out this Related Man Page

DtMmdbSectionGetLongTitle(library call) 								   DtMmdbSectionGetLongTitle(library call)

NAME
DtMmdbSectionGetLongTitle -- obtains the long title for a section SYNOPSIS
#include <DtMmdb.h> const char* DtMmdbSectionGetLongTitle( DtMmdbInfoRequest* request, unsigned int* length); DESCRIPTION
The DtMmdbSectionGetLongTitle function returns the long title for the specified section. Do not use the free function on the returned pointer. Table lookup is involved if the section identifier is specified by the locator_ptr field. ARGUMENTS
request Specifies the bookcase in the bookcase descriptor field and either the section's Database Engine identifier (in the primary_oid field) or the section's logical identifier (in the locator_ptr field). If both of these fields have a value, DtMmdbSectionGet- LongTitle uses the locator_ptr value. length Specifies the variable to receive the length of the returned long title, if the returned pointer to the title is not NULL. RETURN VALUE
If DtMmdbSectionGetLongTitle completes successfully, it returns a pointer to a NULL-terminated long title character string. If it fails, it returns a NULL pointer. EXAMPLE
The following shows how a DtMmdbSectionGetLongTitle call might be coded. DtMmdbInfoRequest request; /* fill the request field here */ DtMmdbSectionGetLongTitle(&request); SEE ALSO
DtMmdbSectionGetShortTitle(3) DtMmdbSectionGetLongTitle(library call)
Man Page