tempfile_open
out = tempfile_open(tempf, sizeof(tempf), root_anchor_file, "w");
FILE* out = tempfile_open(tempf, sizeof(tempf), file, "w");