MCPcopy Create free account
hub / github.com/cgsecurity/testdisk / log_close

Function log_close

src/log.c:194–203  ·  view source on GitHub ↗

@ @ requires log_handle == \null || \valid(log_handle); @ assigns \result,errno,log_handle; @ assigns f_status; @*/

Source from the content-addressed store, hash-verified

192 @ assigns f_status;
193 @*/
194int log_close(void)
195{
196 if(log_handle!=NULL)
197 {
198 if(fclose(log_handle))
199 f_status=1;
200 log_handle=NULL;
201 }
202 return f_status;
203}
204
205/*@
206 @ requires log_handle == \null || \valid(log_handle);

Callers 9

get_next_sectorFunction · 0.85
mainFunction · 0.85
MALLOCFunction · 0.85
create_fat_boot_sectorFunction · 0.85
mainFunction · 0.85
photorec_auxFunction · 0.85
photorec_auxMethod · 0.85
mainFunction · 0.85
fidentify.cFile · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68