NetHack 1.3d/write.c