update c struct demo