| 2210 | // in either inches or centimeters, as used with paper sizes. |
| 2211 | |
| 2212 | char *SzLength(real len) |
| 2213 | { |
| 2214 | static char szLen[21]; |
| 2215 | char *pch; |
| 2216 | |
| 2217 | FormatR(szLen, !us.fEuroDist ? len : len * rInToCm, -2); |
| 2218 | for (pch = szLen; *pch; pch++) |
| 2219 | ; |
| 2220 | sprintf(pch, "%s", us.fEuroDist ? "cm" : "in"); |
| 2221 | return szLen; |
| 2222 | } |
| 2223 | |
| 2224 | |
| 2225 | // Format and return a string containing a color, either as a palette index |
no test coverage detected