public: strlen must return size_t, not int

This commit is contained in:
Alibek Omarov 2021-03-07 03:38:54 +03:00
parent 0a818f3f3f
commit 6cc2205321
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ qboolean Q_isdigit( const char *str )
return false;
}
int Q_strlen( const char *string )
size_t Q_strlen( const char *string )
{
int len;
const char *p;

View File

@ -45,7 +45,7 @@ enum
void Q_strnupr( const char *in, char *out, size_t size_out );
#define Q_strlwr( in, out ) Q_strnlwr( in, out, 99999 )
void Q_strnlwr( const char *in, char *out, size_t size_out );
int Q_strlen( const char *string );
size_t Q_strlen( const char *string );
int Q_colorstr( const char *string );
char Q_toupper( const char in );
char Q_tolower( const char in );