X-Git-Url: https://git.sesse.net/?p=cubemap;a=blobdiff_plain;f=util.h;h=303de14d0098e26cbd8f9c535cd6e2438f92021e;hp=f64e25795d5dec79b662519f6a4d319be0f9562d;hb=534764f026b82b144e974882c8e53c4cd8d21b68;hpb=7ddd07eb95bb3216fad47aa6d3eb76a8b2648579 diff --git a/util.h b/util.h index f64e257..303de14 100644 --- a/util.h +++ b/util.h @@ -10,6 +10,9 @@ int make_tempfile(const std::string &contents); // Opposite of make_tempfile(). Returns false on failure. +bool read_tempfile_and_close(int fd, std::string *contents); + +// Same as read_tempfile_and_close(), without the close. bool read_tempfile(int fd, std::string *contents); #endif // !defined(_UTIL_H