| 167 | } |
| 168 | |
| 169 | int Strncasecmp(const char * str1, const char * str2, size_t n) |
| 170 | { |
| 171 | if (!str1 || !str2) |
| 172 | { |
| 173 | throw Exception("String pointer for comparison must not be null."); |
| 174 | } |
| 175 | |
| 176 | #ifdef _WIN32 |
| 177 | return ::_strnicmp(str1, str2, n); |
| 178 | #else |
| 179 | return ::strncasecmp(str1, str2, n); |
| 180 | #endif |
| 181 | } |
| 182 | |
| 183 | void * AlignedMalloc(size_t size, size_t alignment) |
| 184 | { |
no outgoing calls