strcat_s使用中遇到的有关问题

strcat_s使用中遇到的问题
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
const int num = 10;
char temp[num] = { 0 };
ifstream inFile("222.txt");
if (!inFile.is_open())
{
cout << "error!!" << endl;
exit(1);
}
inFile.getline(temp, 6, 0);
cout << temp << endl;
rename("222.txt", strcat_s(temp,strlen(temp),strrchr(temp,'.')));
inFile.close();
return 0;
}

strcat_s使用中遇到的有关问题
------解决思路----------------------
strcat_s的返回值和strcat不一样啊