MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / LoadFromFile

Method LoadFromFile

src/common/classes/fb_string.cpp:309–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307 }
308
309 bool AbstractString::LoadFromFile(FILE* file)
310 {
311 baseErase(0, length());
312 if (! file)
313 return false;
314
315 bool rc = false;
316 int c;
317 while ((c = getc(file)) != EOF)
318 {
319 rc = true;
320 if (c == '\n') {
321 break;
322 }
323 *baseAppend(1) = c;
324 }
325 return rc;
326 }
327
328#ifdef WIN_NT
329// The following is used instead of including huge windows.h

Callers 4

parseExternalValueFunction · 0.80
fetchPasswordFunction · 0.80
testFunction · 0.80
getLineMethod · 0.80

Calls 2

getcFunction · 0.85
lengthFunction · 0.50

Tested by 1

testFunction · 0.64