diff options
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -35,4 +35,8 @@ bool CanonicalizePath(string* path, string* err); /// Portability abstraction. int MakeDir(const string& path); +/// Read a file to a string. +/// Returns -errno and fills in \a err on error. +int ReadFile(const string& path, string* contents, string* err); + #endif // NINJA_UTIL_H_ |