MakeValidCName
Modify a string to be a valid C identifier name. A valid C Identifier name must begin with a letter and can contain only letters, numbers, and underscore characters.
void MakeValidCName( char cPrefixIf1stCharNumber = 0 )
None
EX1
void string_MakeValidCName_ex1() { string str = "23 * this & this"; printf("Before: %s\n", str); str.MakeValidCName('a'); // prefix with 'a', delete all spaces, and delete '*' and '&' printf("After: %s\n", str); }
origin.h