📄 cgilib.h
字号:
#ifndef _CGILIB_H_#define _CGILIB_H_#include "sys/types.h"#include "unistd.h"#include "string.h"#include "stdio.h"#include "stdlib.h"typedef struct{ char name[30]; char value[30];} htmlinput_struct;typedef struct{ char serverip[20]; char serverport[15]; char baudrate[15]; char parity[15]; char databits[15]; char stopbits[15]; char handshaking[15];} commparam_struct;int strpos(char *str,char *substr);char *strdel(char *str,int index,int count);void translate(char *sourcestr);void html_message(char *headtitle,char *bodytitle);int get_CGI_request(htmlinput_struct htmlinputs[]);void write_comm_to_file(char *commfile,commparam_struct commparam);void write_ip_to_file(char *ipfile,char *localip,char *netmask);int erase_sector(unsigned long flash_addr);int write_word(unsigned long flash_addr,unsigned short value);long int getfilelength(char *filename);int write_file_to_flash(char * filename,unsigned long addr);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -