out=new char[strlen(tmpname)+2];
out=new char[strlen(path)+strlen(tmpname)+2];
char *PathCanonize(const char *tmpname){	char path[300];	char *out ;	getcwd(path,300);	if(!tmpname || tmpname[0]==0)	{		out=new char [strlen(path)+2];		strcpy(out,path);		strcat(out,"/");		printf("\n Canonizing null string ??? (%s)\n",out);		return out;	}	if(tmpname[0]=='/')	{		out=new char[strlen(tmpname)+1];		strcpy(out,tmpname);		return out;	}		out=new char[strlen(tmpname)+2];		strcpy(out,path);		strcat(out,"/");		strcat(out,tmpname);		return out;}