for(string::iterator X = name.begin(); X != name.end(); ++X)
pos = name.find(c_up_dir); while( pos != string::npos )
static void switch_slashes(	string & name	){#ifdef WIN32	for(string::iterator X = name.begin(); X != name.end(); ++X)	{		if(*X == '/' )			*X =  '\\';	}#elif defined(MACOS)	name = ":" + name;	for(string::iterator X = name.begin(); X != name.end(); ++X)	{		if(*X == '/' )			*X =  ':';	}#else	// do nothing#endif}