// Copyright (c) 2005-2015 Ross Smith II. See Mit LICENSE in /LICENSE
/*
todo:
fix size of 10.0
bit bit 0 or 1
byte B 8 bits
kibibit Kibit 1024 bits
kilobit kbit 1000 bits
kibibyte (binary) KiB 1024 bytes
kilobyte (decimal) kB 1000 bytes
megabit Mbit 1000 kilobits
mebibyte (binary) MiB 1024 kibibytes
megabyte (decimal) MB 1000 kilobytes
gigabit Gbit 1000 megabits
gibibyte (binary) GiB 1024 mebibytes
gigabyte (decimal) GB 1000 megabytes
terabit Tbit 1000 gigabits
tebibyte (binary) TiB 1024 gibibytes
terabyte (decimal) TB 1000 gigabytes
petabit Pbit 1000 terabits
pebibyte (binary) PiB 1024 tebibytes
petabyte (decimal) PB 1000 terabytes
exabit Ebit 1000 petabits
exbibyte (binary) EiB 1024 pebibytes
exabyte (decimal) EB 1000 petabytes
source: http://www.t1shopper.com/tools/calculate/
.to do:
disk space is all wrong
1 - 9.9 > 9.9
10-999 > 999
1.9G is 1G
10G
% column?
-l | --lowercase Show drive letters/FAT volume names in lower case
-A | --available-at-end Show available drives as one line at the end
Available: F: G: I: K: Y:
*/
#ifdef _MSC_VER
#pragma warning(disable:4996)
#endif
#ifndef WIN32_LEAN_AND_MEAN
# define WIN32_LEAN_AND_MEAN 1
#endif
#define _WIN32_WINNT 0x501
#include
#include
//#include // required for Stackwalker
#include
#include
#include
#include
#include
#include