1 Star 0 Fork 0

lurenchina/atop

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
version.c 531 Bytes
一键复制 编辑 原始数据 按行查看 历史
/* No manual changes in this file */
#include <stdio.h>
#include <string.h>
#include "version.h"
#include "versdate.h"
static char atopversion[] = ATOPVERS;
static char atopdate[] = ATOPDATE;
char *
getstrvers(void)
{
static char vers[256];
snprintf(vers, sizeof vers,
"Version: %s - %s <gerlof.langeveld@atoptool.nl>",
atopversion, atopdate);
return vers;
}
unsigned short
getnumvers(void)
{
int vers1, vers2;
sscanf(atopversion, "%u.%u", &vers1, &vers2);
return (unsigned short) ((vers1 << 8) + vers2);
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lurenchina/atop.git
git@gitee.com:lurenchina/atop.git
lurenchina
atop
atop
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385