mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-08 06:45:05 -05:00
New utility function to read a whole disk file.
I'm going to want this in a moment for Uppity, and it seems like the sort of thing I should put straight into utils.c now, rather than having to move it over later when I inevitably find another use for it. Rather than insisting on allocating a string buffer the way fgetline does, it reads a whole file and transfers the result into an arbitrary BinarySink, which works out the same if you use a strbuf at the call site, but can do other things too if that turns out useful.
This commit is contained in:
Reference in New Issue
Block a user