Source/ThunderBeast/QuakeToon/game/q_shared.c
void COM_FilePath (char *in, char *out)
{
	char *s;
	
	s = in + strlen(in) - 1;
	
	while (s != in && *s != '/')
		s--;

	strncpy (out,in, s-in);
	out[s-in] = 0;
}
/*
============
COM_FilePath

Returns the path up to, but not including the last /
============
*/
COM_FilePath
Returns the path up to, but not including the last
COM_FilePath Returns the path up to but not including the last
void COM_FilePath (char *in, char *out)
{
	char *s;
	s = in + strlen(in) - 1;
	while (s != in && *s != '/')
		s--;
	strncpy (out,in, s-in);
	out[s-in] = 0;
}
void COM_FilePath ( char * in , char * out ) { char * s ; s = in + strlen ( in ) - 1 ; while ( s != in && * s != ' ' ) s -- ; strncpy ( out , in , s - in ) ; out [ s - in ] = 0 ; }
COM_FilePath
Returns the path up to, but not including the last
COM_FilePath Returns the path up to but not including the last