This commit is contained in:
Tatsuhiko Kubo
2016-03-19 18:18:05 +09:00
commit a38d72a9de
70 changed files with 4508 additions and 0 deletions

20
examples/common.cpp Normal file
View File

@@ -0,0 +1,20 @@
#include "common.hpp"
bool isFileExist (string& fs) {
FILE *fp;
if ((fp = fopen(fs.c_str(), "r")) == NULL) {
return false;
}
fclose(fp);
return true;
}
bool isFewArgs (int argc, int limit) {
bool ret = false;
if (argc < limit) {
ret = true;
}
return ret;
}