cgilib.h

来自「一个uclinux下进行网络数据处理,及串口读取,CGI配置」· C头文件 代码 · 共 42 行

H
42
字号
#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 + =
减小字号Ctrl + -
显示快捷键?