Commit 4257a4c7 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Added function cdiInqAttLen().

parent 2e504bd8
...@@ -199,11 +199,7 @@ int cdiInqAttLen(int cdiID, int varID, const char *name) ...@@ -199,11 +199,7 @@ int cdiInqAttLen(int cdiID, int varID, const char *name)
for ( int attid = 0; attid < (int)attsp->nelems; attid++ ) for ( int attid = 0; attid < (int)attsp->nelems; attid++ )
{ {
cdi_att_t *attp = &(attsp->value[attid]); cdi_att_t *attp = &(attsp->value[attid]);
if (strcmp(attp->name, name) == 0) if (strcmp(attp->name, name) == 0) length = (int)attp->nelems;
{
length = (int)attp->nelems;
printf("name >%s< >%s< length %d\n", attp->name, name, length);
}
} }
return length; return length;
......
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