Help STRCMP
#3

You first need to check if the inputtext is a null string before comparing both strings. You could use this useful macro by ******:

PHP код:
#if !defined isnull
    #define isnull(%1)                     ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif 
PHP код:
if(isnull(inputtext))
    {
        
//Do something: display a dialog saying no text was input
        
return 0;
    } 
Reply


Messages In This Thread
Help STRCMP - by Osamakurdi - 26.01.2018, 16:43
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:12
Re: Help STRCMP - by ThePhenix - 26.01.2018, 17:23
Re: Help STRCMP - by DobbysGamertag - 26.01.2018, 17:27
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:28
Re: Help STRCMP - by ThePhenix - 26.01.2018, 17:31
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:36
Re: Help STRCMP - by Osamakurdi - 26.01.2018, 17:45

Forum Jump:


Users browsing this thread: 2 Guest(s)