提交 da910465 编写于 作者: H Hongze Cheng

more code

上级 15974edf
...@@ -69,22 +69,3 @@ int tsdbGetNextSeqNum(int currentNum) { ...@@ -69,22 +69,3 @@ int tsdbGetNextSeqNum(int currentNum) {
return 0; return 0;
} }
} }
// ========================= TEST =========================
#include <stdio.h>
#include <libgen.h>
int main(int argc, char const *argv[])
{
char *fname = "/root/vnode0/data/v0f1897.head-1";
char *bname = basename(fname);
int vid = 0;
int fid = 0;
int seq = 0;
sscanf(bname, "v%df%d", &vid, &fid);
sscanf(bname, "*%d", NULL, &seq);
printf("vid:%d fid:%d seq:%d", vid, fid, seq);
return 0;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册