Show
Ignore:
Timestamp:
03/09/08 12:06:17 (9 months ago)
Author:
rjrw
Message:

Remove annoying NULL from output stream...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/newmole/source/mole_eval_balance.cpp

    r1835 r1836  
    196196                        for (j=0;j<ratesrc->nreactants;j++)  
    197197                        { 
    198                                 fprintf(stdout,"%c%-6.6s %13.7g",j?',':'\0',ratesrc->reactants[j]->label,ratesrc->reactants[j]->den); 
     198                                if (j) 
     199                                        fputc(',',stdout); 
     200                                fprintf(stdout,"%-6.6s %13.7g",ratesrc->reactants[j]->label,ratesrc->reactants[j]->den); 
    199201                        } 
    200202                        fprintf(stdout,"]\n"); 
     
    207209                        for (j=0;j<ratesnk->nreactants;j++)  
    208210                        { 
    209                                 fprintf(stdout,"%c%-6.6s %13.7g",j?',':'\0',ratesnk->reactants[j]->label,ratesnk->reactants[j]->den); 
     211                                if (j) 
     212                                        fputc(',',stdout); 
     213                                fprintf(stdout,"%-6.6s %13.7g",ratesnk->reactants[j]->label,ratesnk->reactants[j]->den); 
    210214                        } 
    211215                        fprintf(stdout,"]\n");