Loserar

File expansion tool

Loserar is a small utility for expanding files, the opposite of file compression tools like Winzip, 7-zip or WinRAR. It is written in C. I wrote the tool as a joke after sitting through some lectures on Huffman Encoding and tail recursion, but turns out that creating large files of an arbitary size is quite useful when you're working on networking applications.

Loserar will expand a file to a factor of your choosing by filling it with garbage and can compress it again to the original file.

Download / Source Code

Everything is all in one file, loserar.c. I'm not going to provide pre-compiled binaries because the code is terrible and you'll probably force a segmentation fault. It does run though!

Usage

loserar [-e | -c | -h] filename [new_filename] [expansion_factor]

How to build

It's very basic C, so use whatever compiler you like. gcc worked great in 2010 and I'm sure it's great now. I've checked the source runs on this neat C online compiler.

gcc -o loserar loserar.c

《 Go back to the homepage