MCPcopy Create free account
hub / github.com/DentonW/DevIL / ILAPIENTRY iDefaultGetc

Function ILAPIENTRY iDefaultGetc

DevIL/src-IL/src/il_files.cpp:176–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174
175
176ILint ILAPIENTRY iDefaultGetc(ILHANDLE Handle)
177{
178 ILint Val;
179
180 if (!UseCache) {
181 Val = fgetc((FILE*)Handle);
182 if (Val == IL_EOF)
183 ilSetError(IL_FILE_READ_ERROR);
184 }
185 else {
186 Val = 0;
187 if (iread(&Val, 1, 1) != 1)
188 return IL_EOF;
189 }
190 return Val;
191}
192
193
194ILint ILAPIENTRY iDefaultRead(void *Buffer, ILuint Size, ILuint Number, ILHANDLE Handle)

Callers

nothing calls this directly

Calls 1

ilSetErrorFunction · 0.85

Tested by

no test coverage detected