Changeset 5103 for trunk/psLib/src/types
- Timestamp:
- Sep 22, 2005, 4:39:06 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psLib/src/types/psMetadataConfig.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/types/psMetadataConfig.c
r5057 r5103 10 10 * @author Eric Van Alst, MHPCC 11 11 * 12 * @version $Revision: 1.4 4$ $Name: not supported by cvs2svn $13 * @date $Date: 2005-09- 15 21:22:22$12 * @version $Revision: 1.45 $ $Name: not supported by cvs2svn $ 13 * @date $Date: 2005-09-23 02:39:06 $ 14 14 * 15 15 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 1275 1275 snprintf(content, MAXSTR, "%d ", item->data.S32); 1276 1276 strncat(mdString, content, MAXSTR); 1277 if ( item->comment != NULL) {1277 if ( strncmp(item->comment,"",2) ) { 1278 1278 // size = strlen(item->comment); 1279 1279 snprintf(content, MAXSTR, " #%s \n", item->comment); … … 1290 1290 snprintf(content, MAXSTR, "%f ", item->data.F32); 1291 1291 strncat(mdString, content, MAXSTR); 1292 if ( item->comment != NULL ) { 1292 if ( strncmp(item->comment,"",2) ) { 1293 // if ( item->comment != NULL ) { 1293 1294 // size = strlen(item->comment); 1294 1295 snprintf(content, MAXSTR, " #%s \n", item->comment); … … 1305 1306 snprintf(content, MAXSTR, "%f ", item->data.F64); 1306 1307 strncat(mdString, content, MAXSTR); 1307 if ( item->comment != NULL ) { 1308 if ( strncmp(item->comment,"",2) ) { 1309 // if ( item->comment != NULL ) { 1310 // if ( !strncmp((char*)item->comment, "", 2) ) { 1308 1311 // size = strlen(item->comment); 1309 1312 snprintf(content, MAXSTR, " #%s \n", item->comment); … … 1321 1324 snprintf(content, MAXSTR, "%s ", ((char *)(item->data.V))); 1322 1325 strncat(mdString, content, MAXSTR); 1323 if ( item->comment != NULL ) { 1326 if ( strncmp(item->comment,"",2) ) { 1327 // if ( item->comment != NULL ) { 1324 1328 // size = strlen(item->comment); 1325 1329 snprintf(content, MAXSTR, " #%s \n", item->comment); … … 1342 1346 buffer2 = strtok(NULL, "\n"); 1343 1347 } 1344 if ( item->comment != NULL ) { 1348 if ( strncmp(item->comment,"",2) ) { 1349 // if ( item->comment != NULL ) { 1345 1350 snprintf(content, MAXSTR, "\nEND #%s\n\n", item->comment); 1346 1351 strncat(mdString, content, MAXSTR); … … 1377 1382 else 1378 1383 strncat(mdString, "F ", MAXSTR); 1379 if ( item->comment != NULL ) { 1384 if ( strncmp(item->comment,"",2) ) { 1385 // if ( item->comment != NULL ) { 1380 1386 snprintf(content, MAXSTR, " #%s \n", item->comment); 1381 1387 strncat(mdString, content, MAXSTR); … … 1431 1437 return NULL; 1432 1438 } 1433 if ( item->comment != NULL ) { 1439 if ( strncmp(item->comment,"",2) ) { 1440 // if ( item->comment != NULL ) { 1434 1441 // size = strlen(item->comment); 1435 1442 snprintf(content, MAXSTR, " #%s \n", item->comment);
Note:
See TracChangeset
for help on using the changeset viewer.
