diff options
author | Chris Xiong <chirs241097@gmail.com> | 2018-07-06 21:25:39 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2018-07-06 21:25:39 +0800 |
commit | b5932d1d22d35cef95eb1cffbf489619b264442d (patch) | |
tree | 6040dc505e9b22875449bcc045fed9b0ac3f0692 /utils.hpp | |
parent | 61e0a974c07f38b8e42f226d68f22e2d1b26fa6d (diff) | |
download | lightsd-b5932d1d22d35cef95eb1cffbf489619b264442d.tar.xz |
Random code clean-ups to get ready for the next update.
Also tweaked the config a little bit.
Diffstat (limited to 'utils.hpp')
-rw-r--r-- | utils.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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<std::string>& v); |