Commit 4a061a8a authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added function tableInqEntry().

parent 1473e0be
......@@ -5,6 +5,7 @@
2017-07-01 Uwe Schulzweida
* Added function tableInqEntry().
* removed: tableInqParNamePtr(), tableInqParNamePtr(), tableInqParUnitsPtr().
2017-06-21 Uwe Schulzweida
......
......@@ -786,7 +786,9 @@ void tableInqEntry(int tableID, int id, int ltype, char *name, char *longname, c
int npars = parTable[tableID].npars;
for ( int item = 0; item < npars; item++ )
{
if ( parTable[tableID].pars[item].id == id )
if ( parTable[tableID].pars[item].id == id &&
(parTable[tableID].pars[item].ltype == -1 || ltype == -1 ||
parTable[tableID].pars[item].ltype == ltype) )
{
if ( name && parTable[tableID].pars[item].name )
strcpy(name, parTable[tableID].pars[item].name);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment