MCPcopy Create free account
hub / github.com/audeering/opensmile / readline

Function readline

scripts/modeltrain/libsvm-small/svm.cpp:2702–2718  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2700static int max_line_len;
2701
2702static char* readline(FILE *input)
2703{
2704 int len;
2705
2706 if(fgets(line,max_line_len,input) == NULL)
2707 return NULL;
2708
2709 while(strrchr(line,'\n') == NULL)
2710 {
2711 max_line_len *= 2;
2712 line = (char *) realloc(line,max_line_len);
2713 len = (int) strlen(line);
2714 if(fgets(line+len,max_line_len-len,input) == NULL)
2715 break;
2716 }
2717 return line;
2718}
2719
2720svm_model *svm_load_model(const char *model_file_name)
2721{

Callers 1

svm_load_modelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected