In my application, there are values generated at run time like x, 1x,2,1 etc. I need to compare these:
as we know,
        x  == 1  is false   
       '1x'== 1  is true
       '1' == 1  is true 
for my application, the first,second cases needs to be false and third needs to be true. if I use ===,
       x  === 1    is false   
      '1x'=== 1    is false   
      1'  === 1    is false  
So both these comparisons i can not use.
I think converting to string and then comparing using strcmp will be the best option I have. Please share your thoughts. Any reply is appreciated.
 
     
     
    