#include <stdio.h>
int
main(int argc, char **argv)
{
if (argc < 2) {
printf(“Hva har du kog i fister?\n”);
} else
if (!strcmp(argv[1], “-GiB”)) {
printf(“Gibibyte\n”);
system(“df -h”);
} else if (!strcmp(argv[1], “-GB”)) {
printf(“Gigabyte\n”);
system(“df -H”);
} else {
printf(“%s [-GiB|-GB]\n”, argv[0]);
}
}
Dedikeret til EizCold, SCOTD (SlamCoderOfToday)