MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / adfCloseFile

Function adfCloseFile

dep/adflib/src/adf_file.c:343–362  ·  view source on GitHub ↗

* adfCloseFile * */

Source from the content-addressed store, hash-verified

341 *
342 */
343void adfCloseFile(struct File *file)
344{
345
346 if (file==0)
347 return;
348/*puts("adfCloseFile in");*/
349
350 adfFlushFile(file);
351
352 if (file->currentExt)
353 free(file->currentExt);
354
355 if (file->currentData)
356 free(file->currentData);
357
358 free(file->fileHdr);
359 free(file);
360
361/*puts("adfCloseFile out");*/
362}
363
364
365/*

Callers 2

getFileMethod · 0.85
putFileMethod · 0.85

Calls 1

adfFlushFileFunction · 0.85

Tested by

no test coverage detected