quit.c
来自「linux 下用c++ 开发的一个小型数据库系统」· C语言 代码 · 共 36 行
C
36 行
#include <memory.h>#include <unistd.h>#include <errno.h>#include <stdlib.h>#include <fcntl.h>#include <iostream>#include <stdio.h>#include "page.h"#include "buf.h"#include "catalog.h"#include "utility.h"extern BufMgr *bufMgr;extern RelCatalog *relCat;extern AttrCatalog *attrCat;//// Closes the catalog files in preparation for shutdown.//// No return value.//void UT_Quit(void){ // close relcat and attrcat// delete relCat; delete attrCat; delete relCat ; // delete bufMgr to flush out all dirty pages delete bufMgr; exit(1);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?