Giter Site home page Giter Site logo

pixd's People

Contributors

fireyfly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pixd's Issues

Add 'install' to Makefile

Hi, cool utility! It'd be great if Makefile had an 'install' option to install the binary, and the man page.

Add option to skip blocks of 0 bytes

Some files (e.g. disk images) can have very large runs of 0 bytes. It would be nice to have an option to omit these - e.g. the BSD hexdump by default emits a * for arbitrarily large groups of zero bytes:

00000250  04 00 00 00 80 00 00 00  33 5b 58 fd 00 00 00 00  |........3[X.....|
00000260  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000400  28 73 2a c1 1f f8 d2 11  ba 4b 00 a0 c9 3e c9 3b  |(s*......K...>.;|
00000410  7f 1b 07 69 76 54 e7 11  a3 8b 90 2b 34 36 13 49  |...ivT.....+46.I|

warning: array subscript has type ‘char’ [-Wchar-subscripts]

cc -Wall -std=c11 -o pixd pixd.c

In file included from pixd.c:2:
pixd.c: In function ‘parse_range’:
pixd.c:101:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
101 | if (!isdigit(*first) || end != delim) errx(1, "invalid start value in range %s", str);
| ^~~~~~
pixd.c:105:18: warning: array subscript has type ‘char’ [-Wchar-subscripts]
105 | if (!isdigit(*second) || *end != '\0') errx(1, "invalid end/size value in range %s", str);

to fix:

101 | if (!isdigit( (unsigned char) *first) || end != delim) errx(1, "invalid start value in range %s", str);
105 | if (!isdigit( (unsigned char) *second) || *end != '\0') errx(1, "invalid end/size value in range %s", str);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.