file_util.h

来自「一个开源的嵌入式flash播放器 具体看文档和例子就可」· C头文件 代码 · 共 37 行

H
37
字号
// file_util.h	-- Thatcher Ulrich 2005

// This source code has been donated to the Public Domain.  Do
// whatever you want with it.

// Misc file-handling utilities.


#ifndef FILE_UTIL_H
#define FILE_UTIL_H


#include "base/tu_config.h"


namespace file_util {
	// Return a pointer to the file extension.  This is the last
	// bit of the filename after the last '.'.  If there's no '.',
	// or it appears before the last '/', then the return value
	// points to an empty string.
	//
	// Does not point to the '.' itself;
	// i.e. get_extension("test.txt") will return "txt".
	const char* get_extension(const char* path);
}


#endif // FILE_UTIL_H


// Local Variables:
// mode: C++
// c-basic-offset: 8 
// tab-width: 8
// indent-tabs-mode: t
// End:

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?