Test if given string is a valid C or LabTalk compatible string to define a variable
BOOL is_good_C_identifier( LPCSTR lpcsz, char cExtraAllowedChar = 0 )
True if the string is a valid string to define a variable ,False if not.
EX1
void is_good_C_identifier_ex1() { string str = "ab*"; char ch = '*'; //change ch to other char to see different result bool bRet = is_good_C_identifier(str , ch); if(bRet) printf("\"%s\" is a good identifier\n" ,str); else printf("\"%s\" is not a good identifier\n" ,str); }
is_good_C_identifier_ex
origin.h