資源簡介
visua c++ 6.0下c 僅一個.cpp和.h文件
代碼片段和文件信息
#include?
#include?
#include?
#include?“vfs.h“
void?bail(const?char?*who){
perror(who);
exit(1);
}
int?help(){
printf(“??help?is?not?finished!\n“);
return?0;
}
int?createfilesystem(const?char?*name){
return?0;
}
void?showpath(File?*dir){
char?path[MAX_DIR_LAY*MAX_FL_NM];
char?path_tem[MAX_DIR_LAY*MAX_FL_NM];
strcpy(pathdir->name);
strcat(path“>“);
//need?clear?to?0?
while(dir->prnt!=NULL){
dir=dir->prnt;
memset(path_tem0sizeof(path_tem));
strcat(path_temdir->name);
strcat(path_tem“/“);
strcat(path_tempath);
strcpy(pathpath_tem);
}
printf(“VFS:%s“path);
}
void?initrootdir(File?*dirFile?*frst_chldFile?*nxt_brthrFile?*prntchar?name[MAX_FL_NM]){
dir->first=-1;
dir->frst_chld=frst_chld;
dir->nxt_brthr=nxt_brthr;
dir->prnt=prnt;
dir->size=-1;
dir->type=IS_DIR;
strcpy(dir->namename);
}
int?format(char?*p_all){
char?*p_work=p_all;
memset(p_work0TOTA
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????1342??2008-06-28?16:55??vfs.h
?????文件???????6638??2008-07-03?15:29??vfs.cpp
-----------?---------??----------?-----??----
?????????????????7980????????????????????2
- 上一篇:ASTM E1381-95中文版
- 下一篇:利用ADS設計的定向耦合器
評論
共有 條評論