Update writemoment2.c