write_trailer
if ((ret = write_trailer()) == 0) { /* write trailer to file */
static int write_trailer(void);