Commit d35a28e0 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Return const string pointers from table routines.

parent 439df37d
......@@ -1016,9 +1016,9 @@ int tableInqParName(int tableID, int code, char *name);
int tableInqParLongname(int tableID, int code, char *longname);
int tableInqParUnits(int tableID, int code, char *units);
char *tableInqParNamePtr(int tableID, int parID);
char *tableInqParLongnamePtr(int tableID, int parID);
char *tableInqParUnitsPtr(int tableID, int parID);
const char *tableInqParNamePtr(int tableID, int parID);
const char *tableInqParLongnamePtr(int tableID, int parID);
const char *tableInqParUnitsPtr(int tableID, int parID);
/* History routines */
......
......@@ -824,7 +824,7 @@ int tableInqParName(int tableID, int code, char *varname)
}
char *tableInqParNamePtr(int tableID, int code)
const char *tableInqParNamePtr(int tableID, int code)
{
char *name = NULL;
int item, npars;
......@@ -846,7 +846,7 @@ char *tableInqParNamePtr(int tableID, int code)
}
char *tableInqParLongnamePtr(int tableID, int code)
const char *tableInqParLongnamePtr(int tableID, int code)
{
char *longname = NULL;
int item, npars;
......@@ -868,7 +868,7 @@ char *tableInqParLongnamePtr(int tableID, int code)
}
char *tableInqParUnitsPtr(int tableID, int code)
const char *tableInqParUnitsPtr(int tableID, int code)
{
char *units = NULL;
int item, npars;
......
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