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

Function ilCharStrLen

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

Because MSVC++'s version is too stupid to check for NULL... Passing NULL to strlen will definitely cause a crash.

Source from the content-addressed store, hash-verified

92// Because MSVC++'s version is too stupid to check for NULL...
93// Passing NULL to strlen will definitely cause a crash.
94ILuint ilCharStrLen(const char *Str)
95{
96 const char *eos = Str;
97
98 if (Str == NULL)
99 return 0;
100
101 while (*eos++);
102
103 return((int)(eos - Str - 1));
104}
105
106
107// Simple function to test if a filename has a given extension, disregarding case

Callers 7

iSaveSgiInternalFunction · 0.85
ILAPIENTRY ilprintfFunction · 0.85
iClipStringFunction · 0.85
XpmPredefColFunction · 0.85
iSaveTargaInternalFunction · 0.85
iTargaSizeFunction · 0.85
ilSaveCHeaderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected