update c example