dbReadStrGoAhead WebServer APIGoAhead EMF

Synopsis

Retrieves string values from the databases.

Prototype

 #include "emfdb.h"

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

Parameters

diddatabase id
tabletable name in the database
columncolumn name in the table
rowrow number in the column
returnValuereturns the string database element

Description

Read a string from the database.

Return Value

dbReadStr returns 0 if success, or -1 if an error occurred.

Example

char_t* fsname; 
dbReadStr(smd, "base_fs_static", "name", row, &fsname); 

See Also

dbReadInt