MCPcopy Create free account
hub / github.com/DentonW/DevIL / iFileExists

Function iFileExists

DevIL/src-IL/src/il_internal.cpp:165–178  ·  view source on GitHub ↗

Checks if the file exists

Source from the content-addressed store, hash-verified

163
164// Checks if the file exists
165ILboolean iFileExists(ILconst_string FileName)
166{
167#if (!defined(_UNICODE) || !defined(_WIN32))
168 FILE *CheckFile = fopen(FileName, "rb");
169#else // Windows uses _wfopen instead.
170 FILE *CheckFile = _wfopen(FileName, L"rb");
171#endif//_UNICODE
172
173 if (CheckFile) {
174 fclose(CheckFile);
175 return IL_TRUE;
176 }
177 return IL_FALSE;
178}
179
180
181// Last time I tried, MSVC++'s fgets() was really really screwy

Callers 15

ilSaveSgiFunction · 0.85
ilSaveMngFunction · 0.85
ilSaveTiffFunction · 0.85
ilSaveJp2Function · 0.85
ilSaveRawFunction · 0.85
ilSavePsdFunction · 0.85
ilSaveVtfFunction · 0.85
ilSaveDdsFunction · 0.85
ilSaveExrFunction · 0.85
ilSaveTargaFunction · 0.85
ilSavePcxFunction · 0.85
ilSaveWbmpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected