mcTBrep, mcTBrepK, mcTBrepI, mcTBrepJ, mcTBrepE, mcTBrepC, mcTBrepF, mcTBrepZ — Replace data in relational table
#include <memcom.h> int mcTBrep(const char* key, const char* type, void* data, int nelem, mcRTable* rt); int mcTBrepK(const char* key, char* data, mcRTable* rt); int mcTBrepI(const char* key, mcInt32* data, int nelem, mcRTable* rt); int mcTBrepJ(const char* key, mcInt64* data, int nelem, mcRTable* rt); int mcTBrepE(const char* key, mcFloat32* data, int nelem, mcRTable* rt); int mcTBrepC(const char* key, mcComplexFloat32* data, int nelem, mcRTable* rt); int mcTBrepF(const char* key, mcFloat64* data, int nelem, mcRTable* rt); int mcTBrepZ(const char* key, mcComplexFloat64* data, int nelem, mcRTable* rt);
The mcTBrep
functions replace data in a
relational table pointed to by rt
. Note that the
table must be loaded before data can be replaced (see
mcTBload
and
mcTBloadDesc
). If the key to be replaced
already exists the data associated to the key will be removed and
the new data will be inserted instead. mcTBrepK
replaces a string in the relational table (the string is
NULL
-terminated and thus implicitly dimensioned).
mcTBrepI
replaces mcInt32
data in the relational table and mcTBrepJ
mcInt64
data. mcTBrepE
replaces mcFloat32
in the relational table and
mcTBrepF
mcFloat64
data in
the relational table. mcTBrepC
replaces
mcComplexFloat32
data in the relational table and
mcTBrepZ
mcComplexFloat64
data. The function returns the status.
If completed successfully, the function returns 0. Otherwise, a negative value indicating the MemCom error number is returned.