MCPcopy Create free account
hub / github.com/InkboxSoftware/all-screen-keyboard / getFileLength

Function getFileLength

keyboard/src/shader.cpp:14–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12#endif
13
14static size_t getFileLength(FILE* file){
15 size_t length;
16 size_t currPos = ftell(file);
17 fseek(file, 0, SEEK_END);
18 length = ftell(file);
19 fseek(file, currPos, SEEK_SET);
20 return length;
21}
22
23static GLuint shaderLoad(const char* filename, GLenum shaderType){
24 FILE* file = fopen(filename, "r");

Callers 1

shaderLoadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected