Fetch the repository succeeded.
/**
* linux terminal progress bar (no thread safe).
* @package progress.h.
*
* @author chenxin <chenxin619315@gmail.com>
*/
#ifndef progress_h
#define progress_h
#include <stdio.h>
typedef struct {
char chr; /*tip char*/
char *title; /*tip string*/
int style; /*progress style*/
int max; /*maximum value*/
float offset;
char *pro;
} progress_t;
#define PROGRESS_NUM_STYLE 0
#define PROGRESS_CHR_STYLE 1
#define PROGRESS_BGC_STYLE 2
extern void progress_init(progress_t *, char *, int, int);
extern void progress_show(progress_t *, float);
extern void progress_destroy(progress_t *);
#endif /*ifndef*/
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。