~ft/snippets

Random snippets of C code that are in public domain

refs

master
browse  log 

clone

read-only
https://git.sr.ht/~ft/snippets
read/write
git@git.sr.ht:~ft/snippets

You can also use your local clone with git send-email.

#Snippets

Random snippets of code and scripts that are in public domain. Just copy and use for whatever you want. Except for doing any kind of harm.

  • c_builtins* a few _builtin* for Plan 9, useful for porting other software

  • lrint.c lrint* implementation

  • msr.c MSR reading tool

  • nanosec.c nanosec(), a replacement for (way more expensive) nsec()

  • qt.[ch] QP tries

  • xml.[ch] XML parser, works as a streaming parser as well

  • clear removes all program output from the terminal, leaving only commands used

  • watch watch-like tool, imagine