We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
qisempty()
1 parent 2350068 commit 2ada9acCopy full SHA for 2ada9ac
src/qcstring.h
@@ -63,7 +63,7 @@ inline char *qstrcpy( char *dst, const char *src )
63
char *qstrncpy(char *dst,const char *src, size_t len);
64
65
inline bool qisempty( const char *s)
66
-{ return s==0 || *s==0; }
+{ return s==nullptr || *s=='\0'; }
67
68
inline int qstrcmp( const char *str1, const char *str2 )
69
{ return (str1 && str2) ? strcmp(str1,str2) : // both non-empty
0 commit comments