SynopsisRetrieves integer values from the databases. Prototype#include "emfdb.h" int dbReadInt(int did, char_t* table, char_t* column, int row, int *returnValue); Parameters
DescriptionRead an integer from the database. Return ValuedbReadInt returns the integer database element in returnValue. It returns 0 if successful, or -1 on errors. Exampleint driveno; if (dbReadInt(smd, "base_fs_static", "disk", row, &driveno) < 0) { /* Error */ } See Also |