| 75 | } |
| 76 | |
| 77 | void CReadConfig::Openf (const char* kpStrFile) { |
| 78 | if (kpStrFile != NULL && strlen (kpStrFile) > 0) { // confirmed_safe_unsafe_usage |
| 79 | m_strCfgFileName = kpStrFile; |
| 80 | m_pCfgFile = fopen (kpStrFile, "r"); |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | long CReadConfig::ReadLine (std::string* pVal, const int kiValSize/* = 4*/) { |
| 85 | if (m_pCfgFile == NULL || pVal == NULL || kiValSize <= 1) |