MemCom Reference Manual > MemCom C API Manual Pages > Relational Table Manager Functions > mcTBstoreDesc

Name

mcTBstoreDesc — Store dataset descriptor table

Synopsis

#include <memcom.h>

int mcTBstoreDesc(int handle, const char* name, mcRTable* rt);

Description

mcTBstoreDesc stores a dataset descriptor table in memory to a database identified by handle and associates t to the dataset name. Once stored, the table in memory can be freed by the function mcTBfree. If completed successfully, the function returns 0. Otherwise, a negative value indicating the MemCom error number is returned.

Parameters

handle

Database handle (input).

name

Name of dataset to which the descriptor table is assigned (input). The name overrides the current name of the table in memory (if any).

rt

Pointer to table in memory to be written to the database (input).

See also

mcTBfree, mcTBloadDesc.