add sample: hook c function with var param