Skip to content
/ cpvg Public

buffered variable block size stdio file copy C/C++ function using FTXUI for gauge/progress screen output.

License

Notifications You must be signed in to change notification settings

jopadan/cpvg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpvg - cp/pv with FTXUI gauge/progress terminal status output

buffered variable block size stdio file copy C/C++ function using FTXUI for gauge/progress screen output.

Usage

#include "cpvg.h"

int main(int argc, char** argv)
{
    if(argc < 3)
    {
        fprintf(stderr, "Usage: %s SRC DST [BLK]\n", argv[0]);
        exit(EXIT_FAILURE);
    }

    exit(fsize(argv[1]) == cpvg(argv[1], argc > 3 ? (size_t)strtouq(argv[3], NULL, 10) : CPVG_BLOCK_SIZE, argv[2])
         ? EXIT_SUCCESS : EXIT_FAILURE);
}

Examples

./cpvg src dst 131072
copying:█████████████████████████████████████▋                                   170393600/324785376
copying:████████████████████████████████████████████████████████████████████████ 324785376/324785376 Finished!

About

buffered variable block size stdio file copy C/C++ function using FTXUI for gauge/progress screen output.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published