ntp_setup.h
来自「使用C语言的cgi程序」· C头文件 代码 · 共 27 行
H
27 行
#ifndef __NTP_H__
#define __NTP_H__
#define MAX_NTP_SERVER_IP_LEN 20
#define MAX_NTP_SERVER_DOMAIN_LEN 30
typedef struct ntp_conf{
int ntp_enable;
int server_select;
char ntp_server_ip[MAX_NTP_SERVER_IP_LEN+1];
char ntp_server_domain[MAX_NTP_SERVER_DOMAIN_LEN+1];
int ntp_timezone;
}NTP_CONF;
#define NTP_OK 0 //Succeed
#define NTP_ReadConfErr -1 //Fail to read NTP settings.
#define NTP_SaveConfErr -2 //Fail to save NTP settings.
int ReadNTPConf(NTP_CONF *conf);
int SaveNTPConf(NTP_CONF *conf);
int time_zone_adjust(void);
extern NTP_CONF ntp_conf;
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?