MCPcopy Create free account
hub / github.com/apple/foundationdb / LoadFile

Method LoadFile

fdbclient/include/fdbclient/SimpleIni.h:1175–1188  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1173
1174template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER>
1175SI_Error CSimpleIniTempl<SI_CHAR, SI_STRLESS, SI_CONVERTER>::LoadFile(const char* a_pszFile) {
1176 FILE* fp = NULL;
1177#if __STDC_WANT_SECURE_LIB__ && !_WIN32_WCE
1178 fopen_s(&fp, a_pszFile, "rb");
1179#else // !__STDC_WANT_SECURE_LIB__
1180 fp = fopen(a_pszFile, "rb");
1181#endif // __STDC_WANT_SECURE_LIB__
1182 if (!fp) {
1183 return SI_FILE;
1184 }
1185 SI_Error rc = LoadFile(fp);
1186 fclose(fp);
1187 return rc;
1188}
1189
1190#ifdef SI_HAS_WIDE_FILE
1191template <class SI_CHAR, class SI_STRLESS, class SI_CONVERTER>

Callers 8

load_confFunction · 0.80
loadConfMethod · 0.80
mainFunction · 0.80
_startMethod · 0.80
Future<Void> _startFunction · 0.80
SnapTest.actor.cppFile · 0.80

Calls

no outgoing calls

Tested by 1

Future<Void> _startFunction · 0.64