All of the cfgfile functions return an error code; zero means no error. These are the error code values which may be returned:
| Value and Macro | Reason |
|---|---|
| 0 = ECFG_OK | No error |
| 1 = ECFG_PARSEWARN | Warning during parsing of file |
| 2 = ECFG_BADCFGFILE | File handle out of range or invalid |
| 3 = ECFG_LIMIT | No more space to store information |
| 4 = ECFG_ALREADY | Entry already exists |
| 5 = ECFG_NOTFOUND | Element not found |
| 6 = ECFG_NOTFOUND2 | Element not found |
| 7 = ECFG_NOMORE | No more elements |
| 8 = ECFG_WRONGTYPE | Wrong type |
| 21 = ECFG_MEM | Not enough memory |
| 22 = ECFG_PARSEFAIL | Parse failure |
| 23 = ECFG_WRONGFILETYPE | Wrong file type |