完成动态内存分配
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
#include <stdio.h>
|
||||
#include <include/dynamic_memory_allocation/main.h>
|
||||
|
||||
#ifndef _SIMPDB_
|
||||
#define _SIMPDB_
|
||||
|
||||
struct database_info{
|
||||
struct data name;
|
||||
struct data path;
|
||||
struct data data_type;
|
||||
struct data data_main;
|
||||
unsigned long size;
|
||||
FILE* pointer;
|
||||
};
|
||||
|
||||
int new_database(struct database_info* db,struct data name,struct data path,struct data data_type);
|
||||
/*创建并加载数据库*/
|
||||
int new_database_nload(struct data name,struct data path,struct data data_type);
|
||||
/*创建但不加载数据库*/
|
||||
int unload_database(struct database_info* db);
|
||||
/*卸载数据库*/
|
||||
#endif
|
||||
Reference in New Issue
Block a user