lib/sw_apps/img_rcvry/src/xbir_util.c
const char* Xbir_UtilGetFileExt (const char *FileName)
{
	const char *Ext = NULL;
	const char *SearchPtr = FileName + strlen(FileName) - 1U;

	while (SearchPtr > FileName) {
		if (*SearchPtr == '.') {
			Ext = SearchPtr + 1U;
			break;
		}
		SearchPtr--;
	}

	return Ext;
}
/*****************************************************************************/
/**
 * @brief
 * This function extracts the extension of the input file name
 *
 * @param	FileName	Pointer to file name
 *
 * @return	Pointer to extension in file name
 *
 *****************************************************************************/
@brief
This function extracts the extension of the input file name

@param       FileName        Pointer to file name

@return      Pointer to extension in file name
@brief This function extracts the extension of the input file name @param FileName Pointer to file name @return Pointer to extension in file name
const char* Xbir_UtilGetFileExt (const char *FileName)
{
	const char *Ext = NULL;
	const char *SearchPtr = FileName + strlen(FileName) - 1U;
	while (SearchPtr > FileName) {
		if (*SearchPtr == '.') {
			Ext = SearchPtr + 1U;
			break;
		}
		SearchPtr--;
	}
	return Ext;
}
const char * Xbir_UtilGetFileExt ( const char * FileName ) { const char * Ext = NULL ; const char * SearchPtr = FileName + strlen ( FileName ) - 1U ; while ( SearchPtr > FileName ) { if ( * SearchPtr == ' ' ) { Ext = SearchPtr + 1U ; break ; } SearchPtr -- ; } return Ext ; }
@brief
 This function extracts the extension of the input file name
@brief This function extracts the extension of the input file name