Something like a /dev/zero on windows

As long as there is no device like the /dev/zero from unix on windows and no other alternative build in (or at least I don’t any), I decided (also out of some boredom) to write a tiny C program providing such functionality.

With the DevZero program you can create files of a given size of bytes, filled with null characters (0x00).

Hex editor view of the file
It is not really a device like a /dev/zero in unix and has a quite limited functionality, but feel free to expand or modify it, if you have some great ideas.

For now,  I only have a working C version, but I am coding on a x86 asm one, with smaller output file size and maybe faster, but it’s not really running, yet…

Download the devZero.c

Similar Posts: