MCPcopy Create free account
hub / github.com/PointCloudLibrary/pcl / readline

Function readline

ml/src/svm.cpp:3120–3136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3118static int max_line_len;
3119
3120static char*
3121readline(FILE* input)
3122{
3123 if (fgets(line, max_line_len, input) == nullptr)
3124 return nullptr;
3125
3126 while (strrchr(line, '\n') == nullptr) {
3127 max_line_len *= 2;
3128 line = static_cast<char*>(realloc(line, max_line_len));
3129 int len = static_cast<int>(strlen(line));
3130
3131 if (fgets(line + len, max_line_len - len, input) == nullptr)
3132 break;
3133 }
3134
3135 return line;
3136}
3137
3138svm_model*
3139svm_load_model(const char* model_file_name)

Callers 2

loadProblemMethod · 0.85
svm_load_modelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected