Glut's portability.txt says to use this...
| 64 | |
| 65 | //! Glut's portability.txt says to use this... |
| 66 | ILstring 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... |
no test coverage detected