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

Function SzTemperature

general.cpp:2196–2206  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2194// degrees Celsius or Fahrenheit, as used with atmospheric refraction.
2195
2196char *SzTemperature(real tmp)
2197{
2198 static char szTemp[21];
2199 char *pch;
2200
2201 FormatR(szTemp, us.fEuroDist ? tmp : tmp * 9.0/5.0 + 32.0, -2);
2202 for (pch = szTemp; *pch; pch++)
2203 ;
2204 sprintf(pch, "%s", us.fEuroDist ? "C" : "F");
2205 return szTemp;
2206}
2207
2208
2209// Format and return a string containing a relatively short length, displayed

Callers 2

FOutputSettingsFunction · 0.85
DlgDefaultFunction · 0.85

Calls 1

FormatRFunction · 0.85

Tested by

no test coverage detected