MCPcopy Create free account
hub / github.com/JACoders/OpenJK / FileLength

Function FileLength

codemp/botlib/l_script.cpp:1314–1325  ·  view source on GitHub ↗

============================================================================ Parameter: - Returns: - Changes Globals: - ============================================================================

Source from the content-addressed store, hash-verified

1312// Changes Globals: -
1313//============================================================================
1314int FileLength(FILE *fp)
1315{
1316 int pos;
1317 int end;
1318
1319 pos = ftell(fp);
1320 fseek(fp, 0, SEEK_END);
1321 end = ftell(fp);
1322 fseek(fp, pos, SEEK_SET);
1323
1324 return end;
1325} //end of the function FileLength
1326#endif
1327//============================================================================
1328//

Callers 1

LoadScriptFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected