MCPcopy Create free account
hub / github.com/CruiserOne/Astrolog / SzLength

Function SzLength

general.cpp:2212–2222  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2210// in either inches or centimeters, as used with paper sizes.
2211
2212char *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

Callers 2

FOutputSettingsFunction · 0.85
DlgFileFunction · 0.85

Calls 1

FormatRFunction · 0.85

Tested by

no test coverage detected