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

Function ilStrDup

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

Glut's portability.txt says to use this...

Source from the content-addressed store, hash-verified

64
65//! Glut's portability.txt says to use this...
66ILstring ilStrDup(ILconst_string Str)
67{
68 ILstring copy;
69
70 copy = (ILstring)ialloc((ilStrLen(Str) + 1) * sizeof(ILchar));
71 if (copy == NULL)
72 return NULL;
73 iStrCpy(copy, Str);
74 return copy;
75}
76
77
78// Because MSVC++'s version is too stupid to check for NULL...

Callers 2

Calls 1

ilStrLenFunction · 0.85

Tested by

no test coverage detected