📄 ini.h
字号:
/*****************************File Description***************************** Main Functions:INI module header file* Author: shaoying@nfs-china.com* Modification Record:* Version name content* V1.0 yangshaoying create this file* Note:*************************************************************************/#ifndef INI_H#define INI_H#include "../define.h"#include "../setup.h"#include "../state.h"#define MAX_CFG_BUF 512/* return value */#define CFG_OK SUCCESS#define CFG_SECTION_NOT_FOUND -1 #define CFG_KEY_NOT_FOUND -2 #define CFG_ERR -10 #define CFG_ERR_OPEN_FILE -10 #define CFG_ERR_CREATE_FILE -11 #define CFG_ERR_READ_FILE -12 #define CFG_ERR_WRITE_FILE -13 #define CFG_ERR_FILE_FORMAT -14 #define CFG_ERR_EXCEED_BUF_SIZE -22 #define COPYF_OK SUCCESS #define COPYF_ERR_OPEN_FILE -10 #define COPYF_ERR_CREATE_FILE -11 #define COPYF_ERR_READ_FILE -12 #define COPYF_ERR_WRITE_FILE -13 struct ini_key_location { s32 ini_section_line_no; s32 ini_key_line_no; s32 ini_key_lines;};s32 ini_set_key(s8 *filename, s8 * section, s8 * key, s8 * value);s32 ini_get_key(s8 *filename, s8 * section, s8 * key, s8 * value);s32 ini_get_sections(s8 *filename, u8 * sections[], s32 max);s32 ini_split_section(s8 *section, s8 **name, s8 **index);s32 ini_join_section(s8 **section, s8 *name, s8 *index);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -