char * finalPath; NS_ASSERTION(PL_strncasecmp(url, "file: finalPath = (char*)PR_Malloc(strlen(url)); if (finalPath == NULL) return NULL; strcpy(finalPath, url+6+1); return finalPath;
*nsMsgGetLocalFileFromURL(char *url){	char * finalPath;	NS_ASSERTION(PL_strncasecmp(url, "file://", 7) == 0, "invalid url");	finalPath = (char*)PR_Malloc(strlen(url));	if (finalPath == NULL)		return NULL;	strcpy(finalPath, url+6+1);	return finalPath;}