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

Function FErrorValN

general.cpp:1497–1511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1495// Print error message for out of range integer parameter to a command switch.
1496
1497flag FErrorValN(CONST char *szOpt, flag f, int nVal, int nPar)
1498{
1499 char sz[cchSzMax], szPar[cchSzDef];
1500
1501 if (!f)
1502 return fFalse;
1503 if (nPar <= 0)
1504 szPar[0] = chNull;
1505 else
1506 sprintf(szPar, "parameter #%d of ", nPar);
1507 sprintf(sz, "Value %d passed to %sswitch %c%s out of range.\n",
1508 nVal, szPar, chSwitch, szOpt);
1509 PrintError(sz);
1510 return fTrue;
1511}
1512
1513
1514// Print error message for out of range real parameter to a command switch.

Callers 5

NProcessSwitchesRareFunction · 0.85
FProcessSwitchesFunction · 0.85
NProcessSwitchesXFunction · 0.85
NProcessSwitchesRareXFunction · 0.85
NProcessSwitchesWFunction · 0.85

Calls 1

PrintErrorFunction · 0.85

Tested by

no test coverage detected