| 1495 | // Print error message for out of range integer parameter to a command switch. |
| 1496 | |
| 1497 | flag 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. |
no test coverage detected