+REP how to empty and check for an empty string var
#5

isnull definition:
pawn Код:
#define isnull(%1) \
    ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
To explicitly empty a string:
pawn Код:
string[0] = EOS // End-Of-String
//or
string[0] = '\0'
Reply


Messages In This Thread
+REP how to empty and check for an empty string var - by PawnoQ - 08.02.2012, 15:23
Re: +REP how to empty and check for an empty string var - by Shabi RoxX - 08.02.2012, 15:27
Re: +REP how to empty and check for an empty string var - by PawnoQ - 08.02.2012, 15:33
Re: +REP how to empty and check for an empty string var - by T0pAz - 08.02.2012, 15:43
Re: +REP how to empty and check for an empty string var - by Vince - 08.02.2012, 15:57
Re: +REP how to empty and check for an empty string var - by PawnoQ - 08.02.2012, 16:01

Forum Jump:


Users browsing this thread: 2 Guest(s)