From b5932d1d22d35cef95eb1cffbf489619b264442d Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Fri, 6 Jul 2018 21:25:39 +0800 Subject: Random code clean-ups to get ready for the next update. Also tweaked the config a little bit. --- utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils.hpp') diff --git a/utils.hpp b/utils.hpp index eac0c8f..10a3d5f 100644 --- a/utils.hpp +++ b/utils.hpp @@ -5,7 +5,7 @@ #define LOG(type,format,...) fprintf(stderr,"%c: " format "\n",type,__VA_ARGS__) int readint(const char* path); float readfloat(const char* path); -std::string readstr(const char* path); +std::string readstr(const char* path,int max_length=256); void writeint(const char* path,int v); std::string trim(std::string s); void split(std::string s,char c,std::vector& v); -- cgit v1.2.3