Create write_png.c

ANSI C code snippet to quickly write PNGs that don't suck.