frac 8033 src/simh/scp.c char frac[16] = ""; frac 8062 src/simh/scp.c sprintf (frac, ".%03.0f%03.0f", msecs, usecs); frac 8063 src/simh/scp.c while (frac[strlen (frac) - 1] == '0') //-V557 frac 8064 src/simh/scp.c frac[strlen (frac) - 1] = '\0'; //-V557 frac 8065 src/simh/scp.c if (strlen (frac) == 1) frac 8066 src/simh/scp.c frac[0] = '\0'; frac 8069 src/simh/scp.c sprintf (buf, "%s%.0f day%s %02.0f:%02.0f:%02.0f%s hour%s", sign, days, (days != 1)? "s" : "", hours, mins, secs, frac, (days == 1) ? "s" : ""); frac 8072 src/simh/scp.c sprintf (buf, "%s%.0f:%02.0f:%02.0f%s hour", sign, hours, mins, secs, frac); frac 8075 src/simh/scp.c sprintf (buf, "%s%.0f:%02.0f%s minute", sign, mins, secs, frac); frac 8078 src/simh/scp.c sprintf (buf, "%s%.0f%s second", sign, secs, frac); frac 8082 src/simh/scp.c sprintf (buf, "%s%.0f.%s msec", sign, msecs, frac+4);