For some reason the damn compiler gives me the errors:
warning C4047: 'function' : 'const char *' differs in levels of indirection from 'char '
and
'strcpy' : different types for formal and actual parameter 2
and
'MoveToHold' : different types for formal and actual parameter 1
Thanks for any help you can give!
Willz99ta
warning C4047: 'function' : 'const char *' differs in levels of indirection from 'char '
and
'strcpy' : different types for formal and actual parameter 2
and
'MoveToHold' : different types for formal and actual parameter 1
Thanks for any help you can give!
Willz99ta
Code:
char MoveToHold(char RealPath)
{
char OldName[500] = strcat( "/usr/users/tchristo/997Test/" , RealPath );
char NewName[500] = strcat( "/usr/users/tchristo/997Hold/",RealPath);
char ErrorLister[500];
int result;
result= rename(OldName,NewName);
if (result != 0 )
{
strcpy(ErrorLister,"Error: Cannot Rename file ");
strcat(ErrorLister,RealPath);
strcat(ErrorLister,"\n");
}
return ErrorLister;
}