I am using cocos2d-x and I want to check that CCString is empty or not. Since I am using box2d where i have to get fixture user data as ccsting from and check it is null or empty.
Asked
Active
Viewed 553 times
0
-
if(String != null || String.length != 0){ // perform your task} – Rama Nov 20 '13 at 06:50
-
in cocos2d-x when i am checking string==null it giving error – Singhak Nov 20 '13 at 07:37
-
how to print this value in console... if i sued like htis its printing some grbage value CCLog(" player %s",pname->getCString()); – Sri Aug 02 '14 at 10:32