MCPcopy Create free account
hub / github.com/brofield/simpleini / LoadFile

Method LoadFile

SimpleIni.h:1384–1398  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1382
1383template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER>
1384SI_Error CSimpleIniTempl<SI_CHAR, SI_STRLESS, SI_CONVERTER>::LoadFile(
1385 const char *a_pszFile) {
1386 FILE *fp = NULL;
1387#if __STDC_WANT_SECURE_LIB__ && !_WIN32_WCE
1388 fopen_s(&fp, a_pszFile, "rb");
1389#else // !__STDC_WANT_SECURE_LIB__
1390 fp = fopen(a_pszFile, "rb");
1391#endif // __STDC_WANT_SECURE_LIB__
1392 if (!fp) {
1393 return SI_FILE;
1394 }
1395 SI_Error rc = LoadFile(fp);
1396 fclose(fp);
1397 return rc;
1398}
1399
1400#ifdef SI_HAS_WIDE_FILE
1401template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER>

Callers 7

TESTFunction · 0.80
SetUpMethod · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80
SetUpMethod · 0.80

Calls 2

UCharPathToUtf8Function · 0.85
GetFileSizeFunction · 0.85

Tested by

no test coverage detected