Update and rename sample.c to arSavePatt.c