dbReadIntGoAhead WebServer APIGoAhead EMF

Synopsis

Retrieves integer values from the databases.

Prototype

 #include "emfdb.h"

 int dbReadInt(int did, char_t* table, char_t* column, 
      int row, int *returnValue); 

Parameters

didreturned database ID
tabletable name in the database
columncolumn name in the table
rowrow number in the column
returnValuepointer to an integer to contain the value read from the database

Description

Read an integer from the database.

Return Value

dbReadInt returns the integer database element in returnValue. It returns 0 if successful, or -1 on errors.

Example

int driveno;
if (dbReadInt(smd, "base_fs_static", "disk", row, &driveno) < 0) {
    /* Error */
}

See Also

dbReadStr