Dear Friends,

#define DATE "date +%y%m%d%H%M%S>"

if((CreateFile(HotName,Extension)) != SUCCESS)
{
printf("\ncftodat. Process %d Error Creating the ERROR file ..\r\n",pid);
printf("\ncftodat. Process %d Terminating ..\r\n",pid);
exit(0);
}

--------------

int CreateFile(char *HotN,char *Extn)
char TmpDt[30], *tmpname ;
{
printf("I am in CreateFile with parameters %s as Name and %s as Extension \n\n",HotN,Extn);
tmpname = tmpnam(NULL);
sprintf(TmpDt,"%s %s",DATE,tmpname);
system(TmpDt);
strcat(HotN,tmpname);
strcat(HotN,Extn);
return(SUCCESS);
}


--------

this code is giving me error.... on the line having code
Missing ";". (nosemi)
char TmpDt[30], *tmpname ;
^

Please help !!! Actually my idea is to create a file with timestamp and have starting of the file name and extension of the file name send as parameter.

with best regards & Thanks
Mehul Doshi