filesystem.h

来自「JK Proxy Project - Version 0.1 --------」· C头文件 代码 · 共 54 行

H
54
字号
/*
+-----------------------------------------------------------------------------+
|                                                                             |
|   filesystem.h                                                              |
|   Last change: yyyy-mm-dd                                                   |
|                                                                             |
|   Author: Jan Krumsiek                                                      |
|   eMail:  proxy@krumsiek.com                                                |
|   Web:    http://www.krumsiek.com/proxy                                     |
|                                                                             |
|   Copyright 2003 - Jan Krumsiek                                             |
|   This source code can freely be modified and redistributed. No liability   |
|   whatsoever is taken by the author for any use of this software.           |
|                                                                             |
|   Description:                                                              |
|   Header file for filesystem.cpp. Contains prototypes for public function   |
|                                                                             |
+-----------------------------------------------------------------------------+
*/

#ifndef _FILESYSTEM_H_
#define _FILESYSTEM_H_

#include "proxymain.h"

#include "time.h"

struct FILELIST	{ // represents a list of files (e.g. in a directory)
	CHARPTR* files;		// pointer to array of strings
	UINT inum;			// number of files
};


// function prototypes
UINT GetFileLength(CHARPTR path);
void KillFile(CHARPTR file);
int FileExists(CHARPTR name);
void WriteToFile(CHARPTR filepath, CHARPTR data);
void CreateDir(CHARPTR name);
void GetFileCont(CHARPTR filename, CHARPTR* cont, UINT* length);
FILELIST* GetDirContents(CHARPTR dirw);
tm GetFileLWTime(CHARPTR file);
int DeleteFileList(FILELIST* files);


#ifdef WIN32
	CHARPTR GetAppDir();
#endif





#endif

⌨️ 快捷键说明

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