MCPcopy Create free account
hub / github.com/cppla/ServerStatus / io_seek

Function io_seek

server/src/system.c:311–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309}
310
311int io_seek(IOHANDLE io, int offset, int origin)
312{
313 int real_origin;
314
315 switch(origin)
316 {
317 case IOSEEK_START:
318 real_origin = SEEK_SET;
319 break;
320 case IOSEEK_CUR:
321 real_origin = SEEK_CUR;
322 break;
323 case IOSEEK_END:
324 real_origin = SEEK_END;
325 break;
326 default:
327 return -1;
328 }
329
330 return fseek((FILE*)io, offset, real_origin);
331}
332
333long int io_tell(IOHANDLE io)
334{

Callers 1

io_lengthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected