31 Star 62 Fork 28

狮子的魂 / ltpro

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
ltpro.h 668 Bytes
Copy Edit Raw Blame History
狮子的魂 authored 2015-12-07 11:36 . code tab to 4 space
/**
* 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*/
C
1
https://gitee.com/lionsoul/ltpro.git
git@gitee.com:lionsoul/ltpro.git
lionsoul
ltpro
ltpro
master

Search