*** TIPS: HOW TO FORMAT THE OUTPUT OF YOUR TOOL? ************************************ ======================================================================================== EXAMPLE 1 ======================================================================================== **** The Header **** Justify on the right, respect the position of '|' below: 0 1 2 3 4 column 01234567890123456789012345678901234567890123456789.. | | | | fprintf(fp[id], "# packet double1 double2 double3"); #ifdef EXPORT fprintf(fp[id], "%s", E_HEAD); #endif **** The Values **** fprintf(fp[id], " %-5ld% 14e % 14e % 14e", packet, dnum1, dnum2, dnum3); #ifdef EXPORT fprintf(fp[id], E_FORMAT, E_LIST); #endif ======================================================================================== EXAMPLE 2 ======================================================================================== **** The Header **** Justify on the right, respect the position of '|' below: 0 1 2 3 4 column 0123456789012345678901234567890123456789012345.. | | | | fprintf(fp[id], "# packet long1 double2 double3"); #ifdef EXPORT fprintf(fp[id], "%s", E_HEAD); #endif **** The Values **** fprintf(fp[id], " %-4ld%11ld % 14e % 14e % 14e", packet, inum1, dnum2, dnum3); #ifdef EXPORT fprintf(fp[id], E_FORMAT, E_LIST); #endif