Skip to content

Latest commit

 

History

History
executable file
·
14 lines (12 loc) · 420 Bytes

README.md

File metadata and controls

executable file
·
14 lines (12 loc) · 420 Bytes

Get Input

Utility function for dynamically allocating increasing amounts of memory as contents of a file is read.

Installation

git clone [email protected]:dayvidwhy/get-input.git
cd get-input
make
./read file
# check usage for any errors

How it works

We malloc a set amount of memory then continuously realloc additional memory as the number of bytes becomes insufficient to store our read input.