GithubHelp home page GithubHelp logo

nilx / hmisc Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 172 KB

⇄ http://dev.ipol.im/git/nil/hmisc.git mirror (misc. C header utilities)

Home Page: http://dev.ipol.im/git/?p=nil/hmisc.git

C 92.55% Shell 7.45%

hmisc's Introduction

% Cbits

# OVERVIEW

Hmisc is a collection bits of C code, providing tiny tools and
facilities:

debug.h:
  NDEBUG-aware printf macros and routines to measure cycles and CPU
  time for profiling.

tqsort.h:
  Type-specific versions of qsort().

xstdint.h:
  Cross-platform definition of exact-width integers as defined in the
  C99 standard but usable with C89.

xmtime.h:
  Cross-platform millisecond timer for Windows and POSIX. On other
  systems, this precision timer is emulated with the standard libc
  low-precision time functions.

smem.h:
  Failsafe memory allocation.

str.h:
  String utilities.

# LICENSE

See each source file.

# USAGE

These headers are written for a local use by header inclusion only. No
need to compile, everything is local to the compilation unit (source
file), just include the header you need where you need it.

See each source file for derails.

# TODO

Add a test suite and some examples.

Add other bits of code:
- xio.h: robust file handling
  cf. http://tools.ipol.im/wiki/author/code/fragments_in_c/)
- mt.h: mersenne twister, from http://dev.ipol.im/git/?p=nil/mt.git
- bit twiddling, cf. http://bits.stephan-brumme.com/
- snprintf.h: poor man's snprintf()

# ABOUT THIS FILE

Copyright 2011 Nicolas Limare <[email protected]>

Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.  This file is offered as-is,
without any warranty.

hmisc's People

Contributors

nilx avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

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.