Commit c11f1308 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

Removed call of strlen().

parent e58baca6
......@@ -374,15 +374,15 @@ void *Filedes(void *argument)
varname[0] = 0;
varlongname[0] = 0;
varunits[0] = 0;
int code = vlistInqVarCode(vlistID, varID);
int code = vlistInqVarCode(vlistID, varID);
vlistInqVarName(vlistID, varID, varname);
vlistInqVarLongname(vlistID, varID, varlongname);
vlistInqVarUnits(vlistID, varID, varunits);
fprintf(stdout, "%4d %-12s", code, varname);
if ( strlen(varlongname) )
if ( varlongname[0] )
{
fprintf(stdout, " %s", varlongname);
if ( strlen(varunits) )
if ( varunits[0] )
fprintf(stdout, " [%s]", varunits);
}
fprintf(stdout, "\n");
......
Supports Markdown
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