Browse Source

public: strlen must return size_t, not int

pull/2/head
Alibek Omarov 4 years ago
parent
commit
6cc2205321
  1. 2
      public/crtlib.c
  2. 2
      public/crtlib.h

2
public/crtlib.c

@ -60,7 +60,7 @@ qboolean Q_isdigit( const char *str ) @@ -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;

2
public/crtlib.h

@ -45,7 +45,7 @@ enum @@ -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 );

Loading…
Cancel
Save