Add file extension to given string
bool add_file_extension( string & strFilename, LPCSTR lpcszExt )
true if extension is added, false if filename already has given extension
EX1
int add_file_extension_ex1() { string str = GetAppPath() + "origin.ini"; bool bRet = add_file_extension(str, "ini"); ASSERT(!bRet); bRet = add_file_extension(str, "txt"); ASSERT(bRet); string strFilename = GetFileName(str); ASSERT(strFilename == "origin.ini.txt"); return 0; }
check_add_file_ext
origin.h