[Solved] C how to identify function exist or not [closed]
You could define a struct like this: struct tags { const char *name; int maxlen; char value[128]; }; struct tags tagList[] = { { “34”, 32, 0 }, { “43”, 16, 0 }, { “11”, 32, 0 }, … }; Then you could write your loop like this: for(int idx=0;idx<inum;idx++){ if( strlen(ArrLeftVar[idx]) < 1 ) … Read more