31 Star 62 Fork 28

狮子的魂 / ltpro

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tst-pro.c 516 Bytes
一键复制 编辑 原始数据 按行查看 历史
狮子的魂 提交于 2015-12-07 11:36 . code tab to 4 space
/**
* program bar test program.
*
* @author chenxin <chenxin619315@gmail.com>
*/
#include "ltpro.h"
#include <unistd.h>
int main(int argc, char *argv[] )
{
progress_t bar;
//progress_init(&bar, "", 50, PROGRESS_NUM_STYLE);
//progress_init(&bar, "", 50, PROGRESS_CHR_STYLE);
progress_init(&bar, "", 50, PROGRESS_BGC_STYLE);
int i;
for ( i = 0; i <= 50; i++ ) {
progress_show(&bar, i/50.0f);
sleep(1);
}
printf("\n+-Done\n");
progress_destroy(&bar);
return 0;
}
C
1
https://gitee.com/lionsoul/ltpro.git
git@gitee.com:lionsoul/ltpro.git
lionsoul
ltpro
ltpro
master

搜索帮助