| 22 | #endif //_WIN32 |
| 23 | |
| 24 | BEGIN_TIER0_NAMESPACE |
| 25 | |
| 26 | static char* AllocString( const char *pStr, int nMaxChars ) |
| 27 | { |
| 28 | int allocLen; |
| 29 | if ( nMaxChars == -1 ) |
| 30 | allocLen = V_strlen( pStr ) + 1; |
| 31 | else |
| 32 | allocLen = Min( V_strlen(pStr), nMaxChars ) + 1; |
| 33 | |
| 34 | char *pOut = new char[allocLen]; |
| 35 | V_strncpy( pOut, pStr, allocLen ); |
| 36 | return pOut; |
| 37 | } |
| 38 | |
| 39 | int V_strncmp( const char *s1, const char *s2, int count ) |
| 40 | { |
no test coverage detected