memory-allocator/README.md

26 lines
484 B
Markdown
Raw Normal View History

2024-02-11 00:36:54 +00:00
# memory allocator
it allocates memory *(in gibibytes (GiB))*
## how to use
- run the executable
2024-02-12 01:40:58 +00:00
- enter how many gibibytes you want (max is how many gibibytes of memory you have...or more!)
2024-02-11 00:36:54 +00:00
- confirm (y)
- wait for the program to allocate the memory
- your memory is allocated
2024-02-12 01:40:58 +00:00
- press ENTER or CTRL+C to free the memory and exit the program
2024-02-11 00:36:54 +00:00
- ???
- profit
## how to compile
- get a c compiler (i use gcc)
2024-02-12 01:40:58 +00:00
- `gcc -o ./allocatememory ./main.c`
2024-02-11 00:36:54 +00:00
- ???
- profit
## why
i was bored