Sometimes, for small pieces of code, I use a special license header that goes like this:
/* Released as public domain, or licensed under
* either CC0 or the MIT/X11, whichever gives
* you the most rights in your legislation.
*/
Now, there's a few things in here: