tier1/strtools.cpp
const char *V_GetFileExtensionSafe( const char *path )
{
	const char *pExt = V_GetFileExtension( path );
	if ( pExt == NULL )
		return "";
	else
		return pExt;
}
//-----------------------------------------------------------------------------
// Purpose: Returns a pointer to the file extension within a file name string
// Input:	in - file name 
// Output:	pointer to beginning of extension (after the "."), or ""
//				if there is no extension
//-----------------------------------------------------------------------------
Returns a pointer to the file extension within a file name string
Input: in - file name
Output:        pointer to beginning of extension (after the "."), or ""
if there is no extension
Returns a pointer to the file extension within a file name string Input : in - file name Output : pointer to beginning of extension ( after the " . " ) or " " if there is no extension
const char *V_GetFileExtensionSafe( const char *path )
{
	const char *pExt = V_GetFileExtension( path );
	if ( pExt == NULL )
		return "";
	else
		return pExt;
}
const char * V_GetFileExtensionSafe ( const char * path ) { const char * pExt = V_GetFileExtension ( path ) ; if ( pExt == NULL ) return " " ; else return pExt ; }
Purpose: Returns a pointer to the file extension within a file name string
Input: in - file name
Output:        pointer to beginning of extension (after the ".
Purpose : Returns a pointer to the file extension within a file name string Input : in - file name Output : pointer to beginning of extension ( after the " .