purecov_save_data

Syntax: int purecov_save_data (void)

This function takes the accumulated counts at the time of the call and writes or merges them into the counts file. It then clears the counts to zero.

You can use this function with a long-running program to checkpoint coverage data incrementally. Alternatively you can use it to distribute counts for different phases of a program's run to different files.